Sets the x- and y-extents of the window associated with the device context.
Specifies the x-extent (in logical units) of the window.
Specifies the y-extent (in logical units) of the window.
Specifies the x- and y-extents (in logical units) of the window.
The previous extents of the window (in logical units) as a CSize object. If an error occurs, the x- and y-coordinates of the returned CSize object are both set to 0.
The window, along with the device-context viewport, defines how GDI maps points in the logical coordinate system to points in the device coordinate system.
When the following mapping modes are set, calls to SetWindowExt and SetViewportExt functions are ignored:
When MM_ISOTROPIC mode is set, an application must call the SetWindowExt member function before calling SetViewportExt.