当前位置: 代码迷 >> VC >> !一个主机可以接两个投影仪,让两个投影仪各显示屏幕的一半
  详细解决方案

!一个主机可以接两个投影仪,让两个投影仪各显示屏幕的一半

热度:3680   发布时间:2013-02-25 00:00:00.0
求助!!一个主机可以接两个投影仪,让两个投影仪各显示屏幕的一半?
如题

------解决方案--------------------------------------------------------
call 多屏 api
EnumDisplayMonitors Enumerates display monitors that intersect a region formed by the intersection of a specified clipping rectangle and the visible region of a device context. 

GetMonitorInfo Retrieves information about a display monitor. 
MonitorEnumProc An application-defined callback function that is called by the 
EnumDisplayMonitors function. 

MonitorFromPoint Retrieves a handle to the display monitor that contains a specified point. 
MonitorFromRect Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle. 

MonitorFromWindow Retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window. 
  相关解决方案