MoveTo

Syntax

DWORD MoveTo(hDC,X,Y)

This function moves the current position to the point specified by the X and Y parameters.

Parameter Type/Description  

hDC HDC Identifies the device context.  
X int Specifies the logical x-coordinate of the new position.  
Y int Specifies the logical y-coordinate of the new position.  

Return Value

The return value specifies the x- and y-coordinates of the previous position. The y-coordinate is in the high-order word; the x-coordinate is in the low-order word.

Comments

Although the MoveTo function has no output, it affects other output functions that use the current position.