Display rotation

Updated: May 27, 2022

Display rotation affects the display coordinate system.

The rotation of a display is described by its SCREEN_PROPERTY_ROTATION property. When you change this property, you are effectively rotating the display coordinate system for the associated display. After rotating the display coordinates as specified by the SCREEN_PROPERTY_ROTATION property, Screen clips, where applicable, any windows that are outside the bounds of the display.

The following example shows what happens when you set the display's SCREEN_PROPERTY_ROTATION property to 90 (to achieve a rotation of 90 degrees clockwise):