MoveToEx

  BOOL MoveToEx(hdc, X, Y, lpPoint)    
  HDC hdc; /* handle of a device context */
  int X; /* x-coordinate of new current position */
  int Y; /* y-coordinate of new current position */
  LPPOINT lpPoint; /* address of old current position */

The MoveToEx function updates the current position to the point specified by the given coordinates and optionally returns the previous current position.

Parameters

hdc

Identifies a device context.

X

Specifies the x-coordinate of the new position in logical units.

Y

Specifies the y-coordinate of the new position in logical units.

lpPoint

Points to a POINT data structure in which the previous current position will be stored. If this argument is a NULL pointer, the previous position is not returned. The POINT structure has the following form:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

Return Value

The return value is TRUE if the call is successful. Otherwise, it is FALSE.

Comment

The MoveToEx function affects all drawing functions.

See Also

LineTo, PolylineTo, PolyBezierTo, AngleArc