全屏模式不显示消息框

全屏模式不显示消息框

本文介绍了在Windows 7上使用GLUT的OpenGL,全屏模式不显示消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前一段时间,我的操作系统是Windows XP时,我用C ++编写了一个OpenGL应用程序.

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

我使用GLUT(平面ol'版本)显示窗口,也使用了全屏模式.

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

有时候,我会显示一个消息框(使用MB_TASKMODAL修饰符的MessageBoxA方法).

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

在Windows XP中,该消息框可以在全屏图形上很好地显示,但是Windows 7似乎有所更改.现在,该应用程序的行为就像显示消息框一样,主要是键盘和鼠标没有直到我单击框上的按钮,才可操作,但该消息未显示在屏幕上!请记住,这与在Windows XP中正常工作的代码相同,并且仅在全屏模式下是一个问题.

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.

有人遇到过这种问题,也许知道一种使此代码与Windows 7兼容的方法吗?

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

推荐答案

即使在这个问题很旧并且可能被遗忘的时候,也要在相同的问题之间建立联系,我遇到了一个类似的问题,并在2010年找到了解决方法:

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 :

模式在Windows 7上由全屏OpenGL窗口打开的对话框未显示

这篇关于在Windows 7上使用GLUT的OpenGL,全屏模式不显示消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 01:41