Anyone know how to get the mouse position?
Printable View
Anyone know how to get the mouse position?
GetCursorPos()
Z.
thanks. another question:
how do you get the position of a window, seeing as GetCursorPos gives you a global (whole screen position)?
thanks, jmiller
You want the mouse position relative to a window, or a window's position?
For the relative position of the mouse use ScreenToClient().