SetWindowOrgEx
A version of this page is also available for
4/8/2010
This function specifies which window point maps to the viewport origin (0,0).
Syntax
SetWindowOrgEx(
HDC hdc,
int X,
int Y,
LPPOINT lpPoint
);
Parameters
- hdc
[in] Handle to the device context.
- X
[in] Specifies the x-coordinate, in logical units, of the new window origin.
- Y
[in] Specifies the y-coordinate, in logical units, of the new window origin.
- lpPoint
[out] Pointer to a POINT structure that receives the previous origin of the window, in logical units. If lpPoint is NULL, this parameter is not used.
Return Value
A nonzero value indicates success. Zero indicates failure. To get extended error information, call GetLastError.
Remarks
Requirements
Header | windows.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |