The OffsetWindowOrgEx function modifies the window origin for a device context using the specified horizontal and vertical offsets.
BOOL OffsetWindowOrgEx(
HDC hdc, // handle to device context
int nXOffset, // horizontal offset
int nYOffset, // vertical offset
LPPOINT lpPoint // pointer to structure receiving the original
// origin
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT: To get extended error information, call GetLastError.
GetViewportOrgEx, OffsetViewportOrgEx, POINT
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Coordinate Spaces and Transformations Overview, Coordinate Space and Transformation Functions