一般的应用程序,运行后默认都是一屏幕显示的。如果是有2个显示器或者多个,如何让程序启动就自动铺满所有的屏幕或者做个按键也行。

解决方案 »

  1.   

    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.