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 );

博客介绍了设备上下文相关函数。SetMapMode函数用于设置指定设备上下文的映射模式,定义了页面空间单位到设备空间单位的转换单位及坐标轴方向。还介绍了CDC::SetViewportExt和CDC::SetWindowExt函数。
1万+

被折叠的 条评论
为什么被折叠?



