Re: [GD-Windows] Going fullscreen
Brought to you by:
vexxed72
From: Eero P. <epa...@ko...> - 2004-02-01 17:47:48
|
Simon O'Connor wrote: > If you use CreateWindowEx() instead of CreateWindow(), there is am extended > style called WS_EX_TOPMOST which should get you more reliable results. > Thanks, that looks promising. Looking at the MSDN docs, it appears I could get the same effect using SetWindowPos? (Checking this because it might be easier to integrate to freeglut) > You probably also want to add some extra code to handle cases where your > window isn't the focus though so that things like Alt-Tab work don't crash > your program or reduce the usability of the OS. This can be as simple as > handling the WM_ACTIVATE message in your message procedure and keeping an > "am_I_the_active_app" flag to decide whether to update your stuff. > > Returning HTCLIENT for WM_NCHITTEST messages when in fullscreen is a good > idea too. That fools Windows into not detecting clicks on non-client areas > of the window such as the menu at the top left. > I will see how the TOPMOST change affects Alt-tab behavior (currently it works ok). For this specific case there there wont be a significant problem anyways, the end user won't probably even have access to the keyboard/mouse... Eero |