I'm having a problem when I try to make my device enter full-screen mode for a GapiDraw program. Everything seems to work, as the taskbar and everything else disappears. However, the area of the start button/task bar remains black, regardless of what I do. The window extends underneath the black area, as I can blit to that area, but nothing I do gets the game window on top of that black bar. My full-screen code is below--it is called after I've made the window, and again on a WM_ACTIVATE message. (Note--I'm not using MFC, just Win32)
Thanks for any help you can give.
-Ionitor
- Code:
HDC hdcMain = GetDC(hwndGame);
int iVertical, iHorizontal;
iVertical = GetDeviceCaps(hdcMain, VERTRES);
iHorizontal = GetDeviceCaps(hdcMain, HORZRES);
ReleaseDC(hwndGame, hdcMain);
SHFullScreen(hwndGame, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);
if (!SetWindowPos(hwndGame, HWND_TOPMOST, 0, 0, HORZRES, VERTRES, SWP_SHOWWINDOW))
{
return false;
}
MoveWindow(hwndGame, 0, 0, iHorizontal, iVertical, TRUE);
Thanks for any help you can give.
-Ionitor