The OffsetViewportOrgEx function modifies the viewport origin for a device context using the specified horizontal and vertical offsets.
BOOL OffsetViewportOrgEx(
HDC hdc, |
// handle to device context |
int nXOffset, |
// horizontal offset |
int nYOffset, |
// vertical offset |
LPPOINT lpPoint |
// pointer to structure receiving original origin |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
The new origin is the sum of the current origin and the horizontal and vertical offsets.