GetCurrentPositionEx

  BOOL GetCurrentPositionEx(hdc, lpPoint)    
  HDC hdc; /* handle of device context */
  LPPOINT lpPoint; /* address of structure that receives current pos. */

This function retrieves the current position.

Parameters

hdc

Identifies the device context.

lpPoint

Points to a POINT structure that receives the coordinates of the current position. The POINT structure has the following form:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

Return Value

The return value is TRUE if the function is successful. Otherwise it is FALSE.

Comments

The current position is always returned in logical coordinates.

See Also

POINT