词条 | SetWindowExt |
释义 | CDC::SetWindowExtvirtual CSize SetWindowExt( int cx, int cy ); virtual CSize SetWindowExt( SIZE size ); 返回值 The previous extents of the window (in logical units) as a CSize object. If an error occurs, the x- and y-coordinates of the returned CSize object 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 to SetWindowExt and SetViewportExt functions are ignored: 当设置以下映射模式时,对SetWindowExt和SetViewportExt的调用将被覆盖 MM_HIENGLISH MM_HIMETRIC MM_LOENGLISH MM_LOMETRIC MM_TEXT MM_TWIPS When MM_ISOTROPIC mode is set, an application must call the SetWindowExt member function before calling SetViewportExt. 当设置MM_ISOTROPIC 时,应用在调用SetWindowExt成员函数之前必须调用SetViewportExt函数。 |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。