by Dan East » Aug 3, 2001 @ 12:25am
Process the WM_ACTIVATE message in your main window handler. If you are getting activation then call the SHFullScreen function, and size your window to fit the display (use GetSystemMetrics to get the dimensions, don't hard-code them like a bad little programmer).<br>Aww, heck. Just copy and paste:<br>[fixed]<br>case WM_ACTIVATE:<br> if (LOWORD(wParam)!=WA_INACTIVE) { <br> SHFullScreen(hWnd, SHFS_HIDETASKBAR);<br> MoveWindow(hWnd, 0, 0, GetSystemMetrics(SM_CXSCREEN),<br> GetSystemMetrics(SM_CYSCREEN), TRUE);<br> }<br> break;<br>[/fixed]<br><br>Dan East