CDC::SetWindowExt
Sets the x- and y-extents of the window associated with the device context.
virtual CSize SetWindowExt( int cx, int cy ); CSize SetWindowExt( SIZE size );
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:
-
MM_HIENGLISH
-
MM_HIMETRIC
-
MM_LOENGLISH
-
MM_LOMETRIC
-
MM_TEXT
-
MM_TWIPS
When MM_ISOTROPIC mode is set, an application must call the SetWindowExt member function before calling SetViewportExt.
See the example for CView::OnPrepareDC.