OffsetWindowOrgEx function (wingdi.h)
The OffsetWindowOrgEx function modifies the window origin for a device context using the specified horizontal and vertical offsets.
BOOL OffsetWindowOrgEx(
[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 logical units.
[in] y
The vertical offset, in logical units.
[out] lppt
A pointer to a POINT structure. The logical coordinates of the previous window origin are placed in this structure. If lpPoint is NULL, the previous origin is not returned.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
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