Note that there are some explanatory texts on larger screens.

plurals
  1. POModal dialogs opened by a fullscreen OpenGL window on Windows 7 are not showing
    primarykey
    data
    text
    <p>It seems that my problem may be the same as an unanswered related question (<a href="https://stackoverflow.com/questions/1842312/opengl-with-glut-on-windows-7-fullscreen-mode-not-showing-the-message-box">OpenGL with GLUT on windows 7, fullscreen mode not showing the message box</a>).</p> <p>Since I switched to Win7 as a development environment, and a possible target platform for my applications, I noticed a regression in their behaviour.</p> <p>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.)</p> <p>The window is just created with WS_POPUP style. The GL context is nothing fancy. And everything is fine with Windows XP.</p> <p>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.</p> <p>This is a major problem as the application appears to be frozen, while it in fact waits for user input.</p> <p>Did anyone encounter this behaviour ? Does anyone know a workaround ?</p> <p>I've quickly made up a sample test application ; its source code can be found at <a href="http://pastebin.com/K4v2NNDs" rel="nofollow noreferrer">http://pastebin.com/K4v2NNDs</a>. A simple MSVC8 project can be found <a href="http://code.google.com/p/rotoglup-scratchpad/source/browse/#svn/trunk/misc/windows7_fullscreen_modal_dialog_pb" rel="nofollow noreferrer">here</a>.</p> <p>PS. I've also posted on opengl.org forums, sorry for those of you that follow both.</p> <p><strong>EDIT</strong></p> <p>Thanks to Chris comment, I've tested the modal dialog on various events, such as WM_TIMER or WM_RBUTTONUP, but the problem is still there.</p> <p>I've also called 'DwmEnableComposition' with 'DWM_EC_DISABLECOMPOSITION' just to check : problem still there.</p> <p>I've also tested the application by replacing the OpenGL bits by DirectX, and this way everything works as expected... It's really OpenGL causing the problem.</p> <p>(updated pastebin <a href="http://pastebin.com/Rq1Ehm3w" rel="nofollow noreferrer">http://pastebin.com/Rq1Ehm3w</a> and my scratchpad)</p> <p><strong>EDIT</strong></p> <p>The problem also exists on Windows 8.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload