OpenGL with GLUT on windows 7, fullscreen mode not showing the message box

给你一囗甜甜゛ 提交于 2019-12-23 15:44:21

问题


I wrote an OpenGL app in C++ a while ago, back when my operating system was Windows XP.

I used GLUT (plane ol' version) to show the window and also used full screen mode.

There are times when I displayed a message box (MessageBoxA method, using the MB_TASKMODAL modifier).

In windows XP the message box was being displayed nicely over the full screen graphics, but it seems that something has changed in windows 7. Now, the application behaves like the message box is displayed, mainly, the keyboard and mouse are not operational until I click the button on the box, but the message is not shown on the screen! Keep in mind that it's the same code that was working fine in windows XP, and it is only a problem in full screen mode.

Did anyone ran into this kind of problem and perhaps know a way to make this code windows 7 compatible?


回答1:


Just to make links between identical problems, even if this question is old and probably forgotten, I had a comparable question and found a workaround in 2010 :

Modal dialogs opened by a fullscreen OpenGL window on Windows 7 are not showing



来源:https://stackoverflow.com/questions/1842312/opengl-with-glut-on-windows-7-fullscreen-mode-not-showing-the-message-box

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!