13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SetWindowExtParametersReturn valueCommentsThe extents also define the relative orientation of the x- and y-axes in bothcoordinate systems. If the signs of matching window and viewport extentsare the same, the axes have the same orientation. If the signs are different,the orientation is reversed. For example, if the y-extent of the window is 2and the y-extent of the viewport is -1, GDI maps the positive y-axis in thelogical coordinate system to the negative y-axis in the device coordinatesystem. If the x-extents are 2 and 4, GDI maps the positive x-axis in thelogical coordinate system to the positive x-axis in the device coordinatesystem.hDCxyHDC Identifies the device context.int Specifies the x-extent (in logical units) of the window.int Specifies the y-extent (in logical units) of the window.The return value specifies the previous extents of the window (in logicalunits). The y-extent is in the high-order word; the x-extent is in the loworderword. If an error occurs, the return value is zero.When the following mapping modes are set, calls to the SetWindowExtand SetViewportExt functions are ignored:c MM_HIENGLISHc MM_HIMETRICc MM_LOENGLISHc MM_LOMETRICcMM_TEXTcMM_TWIPSWhen MM_ISOTROPIC mode is set, an application must call theSetWindowExt function before calling SetViewportExt.SetWindowLongSyntaxParametersLONG SetWindowLong(hWnd, nIndex, dwNewLong)function SetWindowLong(Wnd: HWnd; Index: Integer; NewLong:Longint): Longint;This function changes an attribute of the window specified by the hWndparameter.h WndnlndexHWN D Identifies the window.int Specifies the byte offset of the attribute to be changed. Itmay also be one of the following values:Chapter 4, Functions directory533

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!