bool get_cursor_position(point* position)
This function obtains the current position of the cursor.
point* position
A pointer to a point that is updated to contain the screen coordinates of the cursor's position.
bool
true | The call was successful. |
false | The call failed. |
The cursor's position is returned in screen coordinates and is unaffected by the current unit (mapping) mode.
To query the cursor position, the calling process must have access station_access::read_attributes to the window station.