OffsetViewportOrgEx function (wingdi.h)
The OffsetViewportOrgEx function modifies the viewport origin for a device context using the specified horizontal and vertical offsets.
BOOL OffsetViewportOrgEx(
[in] HDC hdc,
[in] int x,
[in] int y,
[out] LPPOINT lppt
);
[in] hdc
A handle to the device context.
[in] x
The horizontal offset, in device units.
[in] y
The vertical offset, in device units.
[out] lppt
A 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.
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.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |
Coordinate Space and Transformation Functions