SetWindowExt是一个编程语言函数。
名词简介
virtualCSizeSetWindowExt(intcx,intcy);
virtualCSizeSetWindowExt(SIZEsize);
返回值
The previous extents of the window (in logical units) as aCSizeobject. If an error occurs, the x- and y-coordinates of the returnedCSizeobject are both set to 0.
CSize对象,是窗口扩展的前一次取值。出错时,CSize对象返回的X,Y坐标均设置为0。
参数说明
cx
Specifies the x-extent (in logical units) of the window.
指定视图端口的X扩展(逻辑单位)。
cy
Specifies the y-extent (in logical units) of the window.
指定视图端口的Y扩展(逻辑单位)。
size
Specifies the x- and y-extents (in logical units) of the window.
指定视图端口的X和Y扩展(逻辑单位)。
其他信息
Sets the x- and y-extents of the window associated with the device context. 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.
设置窗口扩展的X和Y扩展。窗口和
设备上下文窗口说明了GDI如何将逻辑坐标中的点映射到实际设备坐标中。换言之,它们说明了GDI如何将逻辑坐标转换为设备坐标。
When the following mapping modes are set, calls toSetWindowExtand
SetViewportExtfunctions are ignored: 当设置以下映射模式时,对SetWindowExt和SetViewportExt的调用将被覆盖MM_HIENGLISHMM_HIMETRICMM_LOENGLISHMM_LOMETRICMM_TEXTMM_TWIPSWhenMM_ISOTROPICmode is set, an application must call theSetWindowExtmember function before callingSetViewportExt.
当设置MM_ISOTROPIC 时,应用调用SetWindowExt成员函数,必须在调用
SetViewportExt函数之前。