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.
lpPoint
Points to the POINT structure that is to receive the client coordinates of the cursor.
Returns TRUE for success, FALSE for failure.
The cursor position is always given in client coordinates and is not affected by the mapping mode of the window that contains the cursor.
SetCursorPos, ShowCursor, SetCursor, ClipCursor