複製鏈接
請複製以下鏈接發送給好友

SetWindowExt

鎖定
SetWindowExt是一個編程語言函數。
外文名
SetWindowExt
所屬領域
計算機

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。

SetWindowExt參數説明

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擴展(邏輯單位)。

SetWindowExt其他信息

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 toSetWindowExtandSetViewportExtfunctions 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函數之前。