get_cursor_position


bool get_cursor_position(point* position)

This function obtains the current position of the cursor.

Parameters

point* position

A pointer to a point that is updated to contain the screen coordinates of the cursor's position.

Return

bool

true The call was successful.
false The call failed.

Notes

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.