GetCursorPos

2.x

  void GetCursorPos(lppt)    
  POINT FAR* lppt; /* address of structure for cursor position */

The GetCursorPos function retrieves the screen coordinates of the cursor's current position.

Parameters

lppt

Points to the POINT structure that receives the cursor position, in screen coordinates. The POINT structure has the following form:

typedef struct tagPOINT {   /* pt */
   int x;
   int y;
} POINT;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

This function does not return a value.

Comments

The cursor position is always given in screen coordinates and is not affected by the mapping mode of the window that contains the cursor.

See Also

ClipCursor, SetCursorPos