1、SetMapMode
The SetMapMode function sets the mapping mode of the specified device context. The mapping mode defines the unit of measure used to transform page-space units into device-space units, and also defines the orientation of the device's x and y axes.
int SetMapMode(
HDC hdc, // handle of device context
int fnMapMode // new mapping mode
);
2、 CDC::SetViewportExt
virtual CSize SetViewportExt( int cx, int cy );
virtual CSize SetViewportExt( SIZE size );
3、CDC::SetWindowExt
virtual CSize SetWindowExt( int cx, int cy );
virtual CSize SetWindowExt( SIZE size );