PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Fullscreen problem

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)

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
Ionitor · 07 Jun 2002, 14:32 UTC — Nevermind
I figured it out--when I was calling CGapiDisplay::OpenDisplay, the second parameter was NULL. Still, kind of odd behavior, but it's fixed now.
Hi,

Did you run your sample on Windows CE, the emulator or in stationary native mode? I'm just curious...

/Johan
I had the black bar when I was running it on my EM-500. On my stationary platform, passing NULL as the second param just made the display standard size.