Release Summary : 2. Changes to Existing Features : WindowPlacement Gets New Constants
 
Share this page                  
WindowPlacement Gets New Constants
The FrameExec and FrameSource classes WindowPlacement attribute has four new constants to support multiple monitors. These settings are supported only on Microsoft Windows systems.
WP_PRIMARYSCREENCENTERED
Centers the window on the primary monitor
WP_PRIMARYSCREENRELATIVE
Positions the window relative to the upper left corner of the primary monitor, using the WindowXLeft and WindowYTop attributes as coordinates
WP_VIRTUALSCREENCENTERED
Centers the window on the virtual monitor
WP_VIRTUALSCREENRELATIVE
Positions the window relative to the upper left corner of the virtual monitor, using the WindowXLeft and WindowYTop attributes as coordinates