BOOL MoveToEx(hdc, nX, nY, lpPoint) | |||||
HDC hdc; | /* handle of device context | */ | |||
int nX; | /* x-coordinate of new position | */ | |||
int nY; | /* y-coordinate of new position | */ | |||
POINT FAR* lpPoint; | /* pointer to structure for previous position | */ |
The MoveToEx function moves the current position to the point specified by the nX and nY parameters, optionally returning the previous position.
hdc
Identifies the device context.
nX
Specifies the logical x-coordinate of the new position.
nY
Specifies the logical y-coordinate of the new position.
lpPoint
Points to a POINT structure in which the previous current position will be stored. If this parameter is NULL, no previous position is returned. The POINT structure has the following form:
typedef struct tagPOINT { /* pt */
int x;
int y;
} POINT;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
The return value is nonzero if the call is successful. Otherwise, it is zero.