Windows 7 上出现 GLUT 的 OpenGL,全屏模式不显示消息框

发布于 2024-08-14 01:11:37 字数 371 浏览 3 评论 0原文

不久前,我用 C++ 编写了一个 OpenGL 应用程序,当时我的操作系统是 Windows XP。

我使用 GLUT(plane ol' 版本)来显示窗口,还使用了全屏模式。

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

在 Windows XP 中,消息框在全屏图形上显示得很好,但在 Windows 7 中似乎发生了一些变化。现在,应用程序的行为就像显示消息框一样,主要是键盘和鼠标无法操作,直到我单击框中的按钮,但屏幕上未显示消息!请记住,它与在 Windows XP 中运行良好的代码相同,只是在全屏模式下出现问题。

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

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从﹋此江山别 2024-08-21 01:11:37

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

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文