多个独立显示 [英] Multiple independent displays

查看:87
本文介绍了多个独立显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序可以在第二台显示器中显示内容。我不能让监视器在大型桌面模式下工作。我怎么能这样做。



我知道在MSDN中



Windows GDI

多显示器监视器

关于多个显示器监视器

使用多个监视器作为独立显示器



有我可以使用的东西。但它不起作用!



我想知道它是如何工作的。



提前感谢。

I want my application can show something in the second monitor. I can not let the monitor work in the mode of large desktops. How can i do that.

I know that in MSDN

Windows GDI
Multiple Display Monitors
About Multiple Display Monitors
Using Multiple Monitors as Independent Displays

There is something that i can use. But it does not work!

I want to know how it can work.

thanks in advance.

推荐答案

检查文档 [ ^ ]。并且请不要只是说它不起作用,因为这让我们不知道你的代码在做什么,或者你看到了什么结果。
Check the documentation[^]. And please do not just say "it does not work", as that gives us no idea what your code is doing, or what results you see.


I以为您提到的MSDN文章很清楚。



http://msdn.microsoft.com/en-us/library/windows/desktop/dd145179%28v=vs.85%29.aspx [< a href =http://msdn.microsoft.com/en-us/library/windows/desktop/dd145179%28v=vs.85%29.aspxtarget =_ blanktitle =New Window> ^ ]



程序启动时,它与Windows桌面相关联。任何与该桌面无关的监视器都将无法访问。你说不能让监视器在大型桌面模式下工作。我认为这意味着您不希望将监视器添加到默认桌面。



解决方案:为您的独立显示器创建一个单独的桌面。



您可以创建多个桌面并翻转在他们之间。



如果另一台显示器已经连接到另一台桌面,那么在尝试在该桌面的窗口空间下创建窗口之前,您的程序需要连接到它。



显示器可能位于当前的Window工作站中。见......



http://msdn.microsoft.com/en-us/library/windows/desktop/ms682614%28v=vs.85%29.aspx [ ^ ]



......还有...



http://msdn.microsoft.com/en-us/library/windows/desktop/ms682644%28v = vs.85%29.aspx [ ^ ]
I thought the MSDN article you mentioned was clear.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd145179%28v=vs.85%29.aspx[^]

When your program starts, it is associated with a Windows desktop. Any monitors not associated with that desktop won't be accessible. You say " can not let the monitor work in the mode of large desktops.". I take that to mean you don't want the monitor added to the default desktop.

Solution: create a separate desktop for your independent monitor.

You can create multiple desktops and flip between them.

If the other monitor is already attached to a different desktop, your program will need to attach to it before attempting to create a window under that desktop's window space.

The monitor may be in the current Window station or not. See ...

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682614%28v=vs.85%29.aspx[^]

... and also ...

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682644%28v=vs.85%29.aspx[^]


这篇关于多个独立显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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