Share via


MoveToEx (Windows CE 5.0)

Send Feedback

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

WINGDIAPI BOOL WINAPI MoveToEx(HDChdc,intX,intY,LPPOINTlpPoint);

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

LineTo | POINT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.