GetCursorPos

Syntax

void GetCursorPos(lpPoint)

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

Parameter Type/Description  

lpPoint LPPOINT Points to the POINT structure that is to receive the screen coordinates of the cursor.  

Return Value

None

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.