windows_programming_notes.nbk: Home | Index | Next Page: MoveWindow | Previous Page: MINMAXINFO
MoveToEx
The MoveToEx function updates the current position to the specified point and optionally returns the previous position.
BOOL MoveToEx(
HDC hdc, // handle to device context
int X, // x-coordinate of new current position
int Y, // y-coordinate of new current position
LPPOINT lpPoint // old current position
);
Parameters
hdc
[in] Handle to a device context.
X
[in] Specifies the x-coordinate of the new position, in logical units.
Y
[in] Specifies the y-coordinate of the new position, in logical units.
lpPoint
[out] Pointer to a POINT structure that receives the previous current position. If this parameter is a NULL pointer, the previous position is not returned.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT/2000: To get extended error information, call GetLastError.
Remarks
The MoveToEx function affects all drawing functions.
Requirements
Windows NT/2000 or later: Requires Windows NT 3.1 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
windows_programming_notes.nbk: Home | Index | Next Page: MoveWindow | Previous Page: MINMAXINFO
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time