SetWindowExt

名詞簡介,參數說明,備註,

名詞簡介

CDC::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 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函式之前。

相關詞條

熱門詞條

聯絡我們