C ++和直接X _双显示器使用情况 [英] C++ & Direct X _ Dual Monitor Usage

查看:89
本文介绍了C ++和直接X _双显示器使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用c ++编写的全屏d3d应用程序中有关使用多个(两个就可以)监视器的信息.
找不到任何东西,也许只是工作过度:confused:
如何使我的应用在两台显示器上全屏显示.
感谢您提供任何提示.

解决方案

确定监视器的数量,分辨率和相对于主监视器的位置.然后,将d3d应用程序窗口的原点移动到最左侧的位置(如果辅助监视器位于主监视器的左侧,则原点将具有负X值).您还必须使窗口足够大以包装到另一个监视器.

我之所以这么概括,是因为我不熟悉d3d,但是我知道您可以使用常规的桌面窗口来做到这一点.

哦,是的,您必须确保未将视频卡配置为在每个监视器上镜像桌面.


这里是D3D9 MSDN文档:使用多监视器系统 [ 解决方案

Determine the number of monitors, their resolutions, and their positions relative to the main monitor. Then, move the origin of the d3d app window to the left-most possible position (if your secondary monitor is to the left of your main one, your origin will have a negative X value). You will also have to make the window large enough to wrap over to the other monitor.

I''m generalizing because I''m not familiar with d3d, but I know you can do that with regular desktop windows.

Oh yeah, you''re going to have to make sure your video card isn''t configured to mirror the desktop on each monitor.


Here''s the D3D9 MSDN doc: Working with Multiple Monitor Systems[^]


这篇关于C ++和直接X _双显示器使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆