GetCursorPos

  BOOL GetCursorPos(lpPoint)    
  LPPOINT lpPoint; /* address of structure for cursor position */

This function retrieves the cursor's current position (in client coordinates), that copies them to the POINT structure pointed to by the lpPoint parameter.

Parameters

lpPoint

Points to the POINT structure that is to receive the client coordinates of the cursor.

Return Value

Returns TRUE for success, FALSE for failure.

Comments

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

See Also

SetCursorPos, ShowCursor, SetCursor, ClipCursor