全屏 direct3d 9 应用程序的 Aero 翻转/缩略图中不显示缩略图
我确信这在网络上的某个地方,但我在搜索词时遇到了麻烦(得到了很多不相关的东西)。无论如何,我有一个 Direct3D9 应用程序。当它在 Vista 和 Windows 7 上全屏运行时,当您按下 Alt-Tab 或 Win-Tab 时,我的应用程序在缩略图/预览/实时视图中仅显示为空白(不确定术语是否正确。)我可以响应的 API 或通知,我可以在哪里将后台缓冲区绘制到缩略图?
I'm sure this is on the web somewhere, but I'm having trouble with the search terms (getting lots of non-relevant stuff.) Anyway, I've got a Direct3D9 application. When it runs in full screen, on Vista and Windows 7, and you hit Alt-Tab or Win-Tab, my application just shows up blank in the thumbnail/preview/live view (not sure of the correct term.) Is there an API or notification I can respond to where I can draw my backbuffer to the thumbnail?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行全屏 Direct3D 应用程序窗口时,合成(缩略图是其中的一部分)被禁用。这通常是一件好事,因为它可以提高全屏应用程序的性能。默认情况下,这种行为是合理的,因为大多数全屏应用程序(尤其是针对 XP 或更早版本开发的应用程序)都希望在应用程序运行时成为用户的唯一焦点。如果您愿意,您可以在这种情况下手动实例化和更新缩略图,但使用 Alt-Tab 键远离全屏应用程序通常是一种边缘情况。
有关一般合成的更多信息,包括缩略图 API 的概述,请查看此MSDN 文章
When running a full-screen Direct3D application window compositing (of which the thumbnails are a part) is disabled. This is typically a good thing, since it can increase performance of the full-screen app. As a default this behavior is reasonable since most full-screen apps (especially those developed against XP or earlier) expect to be the sole focus of the user while the app is running. You can manually instantiate and update your thumbnail in this case if you wish, but alt-tabbing away from a full-screen app is usually and edge case.
For more information about compositing in general, including overviews of the thumbnail APIs, check out this MSDN article