CDC::MoveTo

This method moves the current position to the point specified by x and y, or by point.

CPoint MoveTo(
int x,
int y ); 

CPoint MoveTo(
POINT point ); 

Parameters

  • x
    The logical x-coordinate of the new position.
  • y
    The logical y-coordinate of the new position.
  • point
    The new position. You can pass a POINT structure or a CPoint object for this parameter.

Return Value

The x- and y-coordinates of the previous position as a CPoint object.

Example

See the example for CRect::CenterPoint.

Requirements

**  Windows CE versions:** 1.0 and later
  Header file: Declared in Afxwin.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CDC::GetCurrentPosition, CDC::LineTo, CPoint, POINT