BOOL OffsetViewportOrgEx(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 viewport origin for the given device context using the specified horizontal and vertical offsets.
hdc
Identifies the device context.
nXOffset
Specifies the horizontal offset in device units.
nYOffset
Specifies the vertical offset in device units.
lpPoint
Points to a POINT structure. The previous viewport origin (in device units) is placed in this structure. If lpPoint is NULL the previous viewport origin in 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.
The new origin is the sum of the current origin and the horizontal and vertical offsets.
POINT