Nicolas Lelong
03-04-2010, 03:31 AM
Hi,
Since I switched to Win7 as a development environment, and a possible target platform for my applications, I noticed a regression in their behaviour.
Whenever I have a fullscreen window containing a fullscreen OpenGL context, the applications have problems displaying modal dialog boxes (such as message boxes, file open dialog, etc.)
The window is just created with WS_POPUP style. The GL context is nothing fancy. And everything is fine with Windows XP.
The problem under Windows 7 is that the modal dialog boxes are invisible at their opening (maybe their appear behind the full screen window). You have to Alt-Tab the application to have the dialogs appear.
This is a major problem as the application appears to be frozen, while it in fact waits for user input.
Did anyone encounter this behaviour ? Does anyone know a workaround ?
I've quickly made up a sample test application ; its source code can be found at http://pastebin.com/K4v2NNDs. (http://pastebin.com/K4v2NNDs) A simple MSVC8 project can be found here (http://code.google.com/p/rotoglup-scratchpad/source/browse/#svn/trunk/misc/windows7_fullscreen_modal_dialog_pb).
Cheers,
Nicolas.
Since I switched to Win7 as a development environment, and a possible target platform for my applications, I noticed a regression in their behaviour.
Whenever I have a fullscreen window containing a fullscreen OpenGL context, the applications have problems displaying modal dialog boxes (such as message boxes, file open dialog, etc.)
The window is just created with WS_POPUP style. The GL context is nothing fancy. And everything is fine with Windows XP.
The problem under Windows 7 is that the modal dialog boxes are invisible at their opening (maybe their appear behind the full screen window). You have to Alt-Tab the application to have the dialogs appear.
This is a major problem as the application appears to be frozen, while it in fact waits for user input.
Did anyone encounter this behaviour ? Does anyone know a workaround ?
I've quickly made up a sample test application ; its source code can be found at http://pastebin.com/K4v2NNDs. (http://pastebin.com/K4v2NNDs) A simple MSVC8 project can be found here (http://code.google.com/p/rotoglup-scratchpad/source/browse/#svn/trunk/misc/windows7_fullscreen_modal_dialog_pb).
Cheers,
Nicolas.