OffsetViewportOrgEx (Windows CE 5.0)
This function modifies the viewport origin for a device context using the specified horizontal and vertical offsets.
OffsetViewportOrgEx( HDC hdc, int nXOffset, int nYOffset, LPPOINT lpPoint );
- [in] Handle to the device context.
- [in] Specifies the horizontal offset, in device units.
- [in] Specifies the vertical offset, in device units.
- [out] Pointer to a POINT structure. The previous viewport origin, in device units, is placed in this structure. If lpPoint is NULL, the previous viewport origin is not returned.
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
The new origin is the sum of the current origin and the horizontal and vertical offsets.
OS Versions: Windows CE 5.0 and later.
Link Library: Coredll.lib.
Send Feedback on this topic to the authors