函数蹲点【1】

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值