by Dan East » Dec 18, 2001 @ 11:27pm
I just took a look at the 1.5 source. In the "taskbar" function Jacco finds the system taskbar, gets its dimensions, gets the dimensions of your main window, then resizes the window's rect based on the taskbar size. I use a much simpler approach that should work for all cases. I simply explicitly size my main window to the size of the display. I also have not needed to manually hide the taskbar window. This is all I do when I gain activation:<br>[fixed]<br>SHFullScreen(hWnd, SHFS_HIDETASKBAR);<br>MoveWindow(hWnd, 0, 0, GetSystemMetrics(SM_CXSCREEN),<br> GetSystemMetrics(SM_CYSCREEN), TRUE);[/fixed]<br><br>hWnd is of course the handle to your main window.<br><br>Dan East<br><br>[sub][color=blue]Last modification: Dan East - 12/18/01 at 20:27:51