BOOL OffsetWindowOrgEx(hdc, nXOffset, nYOffset, lpPoint) | |||||
HDC hdc; | /* handle of device context | */ | |||
int nXOffset; | /* horizontal offset | */ | |||
int nYOffset; | /* vertical offset | */ | |||
LPPOINT lpPoint; | /* address of structure receiving the original origin | */ |
The OffsetViewportOrgEx function modifies the window origin for the given device-context using the specified horizontal and vertical offsets.
hdc
Identifies the device context.
nXOffset
Specifies the horizontal offset in logical units.
nYOffset
Specifies the vertical offset in logical units.
lpPoint
Points to a POINT structure. The previous window origin (in logical coordinates) is placed in this structure. If lpPoint is NULL the previous origin is not returned. The POINT structure has the following format:
typedef struct tagPOINT { /* pt */
LONG x;
LONG y;
} POINT;
The return value is TRUE if the function is successful. Otherwise, it is FALSE.
GetViewportOrgEx, POINT