Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MoveToEx function

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

Syntax


BOOL MoveToEx(
  _In_   HDC hdc,
  _In_   int X,
  _In_   int Y,
  _Out_  LPPOINT lpPoint
);

Parameters

hdc [in]

Handle to a device context.

X [in]

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

Y [in]

Specifies the y-coordinate, in logical units, 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 value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

The MoveToEx function affects all drawing functions.

Examples

For an example, see Drawing Markers.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Lines and Curves Overview
Line and Curve Functions
AngleArc
LineTo
POINT
PolyBezierTo
PolylineTo

 

 

Community Additions

Show:
© 2014 Microsoft