It is possible to get the current position of the cursor. Preferably as a coord, but it doesn't really matter. This may belong in Windows programming more than here..but it's pretty basic, so sorry in advance if it's out of place.
It is possible to get the current position of the cursor. Preferably as a coord, but it doesn't really matter. This may belong in Windows programming more than here..but it's pretty basic, so sorry in advance if it's out of place.
For windows: GetCursorPos. Or you could handle the WM_MOUSEMOVE message specifically for a window. In fact, every windows message gets the mouse coordinates in the MSG structure used by GetMessage or PeekMessage.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.