SetWindowExt

exten ction ction

CDC::SetWindowExt

virtual 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函式。

相關詞條

相關搜尋

熱門詞條

聯絡我們