Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

CDC::MoveTo

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
Specifies the logical x-coordinate of the new position.
y
Specifies the logical y-coordinate of the new position.
point
Specifies the new position. You can pass either 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.

See Also

CDC Overview | Class Members | Hierarchy Chart | CDC::GetCurrentPosition | CDC::LineTo | CPoint | POINT

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.