次の方法で共有


MoveToEx (Compact 2013)

3/28/2014

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

See Also

Reference

GDI Functions
LineTo
POINT