Coordinate Space and Transformation Functions

The following functions are used with coordinate spaces and transformations.

Function Description
ClientToScreen Converts the client-area coordinates of a specified point to screen coordinates.
CombineTransform Concatenates two world-space to page-space transformations.
DPtoLP Converts device coordinates into logical coordinates.
GetCurrentPositionEx Retrieves the current position in logical coordinates.
GetDisplayAutoRotationPreferences Gets the orientation preferences of the display.
GetGraphicsMode Retrieves the current graphics mode for the specified device context.
GetMapMode Retrieves the current mapping mode.
GetViewportExtEx Retrieves the x-extent and y-extent of the current viewport for the specified device context.
GetViewportOrgEx Retrieves the x-coordinates and y-coordinates of the viewport origin for the specified device context.
GetWindowExtEx Retrieves the x-extent and y-extent of the window for the specified device context.
GetWindowOrgEx Retrieves the x-coordinates and y-coordinates of the window origin for the specified device context.
GetWorldTransform Retrieves the current world-space to page-space transformation.
LPtoDP Converts logical coordinates into device coordinates.
MapWindowPoints Converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window.
ModifyWorldTransform Changes the world transformation for a device context using the specified mode.
OffsetViewportOrgEx Modifies the viewport origin for a device context using the specified horizontal and vertical offsets.
OffsetWindowOrgEx Modifies the window origin for a device context using the specified horizontal and vertical offsets.
ScaleViewportExtEx Modifies the viewport for a device context using the ratios formed by the specified multiplicands and divisors.
ScaleWindowExtEx Modifies the window for a device context using the ratios formed by the specified multiplicands and divisors.
ScreenToClient Converts the screen coordinates of a specified point on the screen to client coordinates.
SetDisplayAutoRotationPreferences Sets the orientation preferences of the display.
SetGraphicsMode Sets the graphics mode for the specified device context.
SetMapMode Sets the mapping mode of the specified device context.
SetViewportExtEx Sets the horizontal and vertical extents of the viewport for a device context by using the specified values.
SetViewportOrgEx Specifies which device point maps to the window origin (0,0).
SetWindowExtEx Sets the horizontal and vertical extents of the window for a device context by using the specified values.
SetWindowOrgEx Specifies which window point maps to the viewport origin (0,0).
SetWorldTransform Sets a two-dimensional linear transformation between world space and page space for the specified device context.