GetCurrentPosition

2.x

  DWORD GetCurrentPosition(hdc)    
  HDC hdc; /* handle of device context */

The GetCurrentPosition function retrieves the logical coordinates of the current position. The current position is set by using the MoveTo function.

Parameters

hdc

Identifies the device context.

Return Value

The low-order word of the return value contains the logical x-coordinate of the current position if the function is successful; the high-order word contains the logical y-coordinate.

See Also

LineTo, MoveTo