MoveToEx

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function updates the current position to the specified point and optionally retrieves the previous position.

Syntax

WINGDIAPI BOOL WINAPI MoveToEx(
  HDC hdc,
  int X,
  int Y,
  LPPOINT lpPoint
);

Parameters

  • hdc
    [in] Handle to a device context.
  • X
    [in] Integer that specifies the x-coordinate of the new position, in logical units.
  • Y
    [in] Integer that specifies the y-coordinate of the new position, in logical units.
  • lpPoint
    [out] Pointer to a POINT structure that receives the previous position.

    If this parameter is a NULL pointer, MoveToEx does not retrieve the previous position.

Return Value

A nonzero value indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

The MoveToEx function affects all drawing functions.

If hdc specifies a mirrored device context, the horizontal coordinates increase from right to left rather than from left to right.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

LineTo
POINT