ScaleViewportExtEx
VB声明
Declare Function ScaleViewportExtEx Lib "gdi32" Alias "ScaleViewportExtEx" (ByVal hdc As Long, ByVal nXnum As Long, ByVal nXdenom As Long, ByVal nYnum As Long, ByVal nYdenom As Long, lpSize As SIZE) As Long
说明
缩放设备场景视口的范围
返回值
Long,执行成功为非零值,失败为0
参数表
参数 类型及说明
hdc Long,设备场景句柄
nXnum,nYnum Long,当前X,Y范围将与本数值相乘
nXdenom,nYdenom Long,当前X,Y范围将被本数值除
lpSize SIZE,装载原有水平和垂直视口范围的结构
注解

本函数仅在MM_ISOTROPIC 和 MM_ANISOTROPIC映射模式下有效,在MM_ISOTROPIC模式,要在设置视口范围之前设置窗口范围

Top