It seems that my problem may be the same as an unanswered question ( OpenGL with GLUT in Windows 7, full-screen mode not displaying a message box ).
Since I switched to Win7 as a development environment and a possible target platform for my applications, I noticed a regression in their behavior.
Whenever I have a full-screen window containing a full-screen OpenGL context, applications have problems displaying modal dialog boxes (such as message boxes, file open dialogs, etc.).
A window is only created using the WS_POPUP style. The GL context does not represent anything. And everything is fine with Windows XP.
The problem with Windows 7 is that the modal dialogs are invisible when they open (maybe they appear behind a full-screen window). You have an Alt-Tab application for displaying dialogs.
This is a serious problem because the application seems to be frozen while it is actually waiting for user input.
Has anyone encountered this behavior? Does anyone know a workaround?
I quickly compiled a sample test application; its source code can be found at http://pastebin.com/K4v2NNDs . A simple MSVC8 project can be found here .
PS. I also posted on the opengl.org forums, I apologize for those of you who follow both.
EDIT
Thanks to Chris comment, I checked the modal dialog for various events like WM_TIMER or WM_RBUTTONUP, but the problem still exists.
I also called "DwmEnableComposition" with "DWM_EC_DISABLECOMPOSITION" to check: the problem still exists.
I also tested the application by replacing the OpenGL bit with DirectX, and thus everything works as expected ... This is really an OpenGL problem causing the problem.
(updated pastebin http://pastebin.com/Rq1Ehm3w and my notepad)
EDIT
The problem also exists in Windows 8.