I need to get cursor position (by pixel not by window (WindowFromPoint don't work for me, because I need to set the cursor on one window in different places). How do I do that?
Thank You.
Printable View
I need to get cursor position (by pixel not by window (WindowFromPoint don't work for me, because I need to set the cursor on one window in different places). How do I do that?
Thank You.
GetCursorPos gives, AFAIK, the position w.r.t screen. You can then use api calls ScreenToClient and ClientToScreen[/b] to get the position w.r.t other windows as well. Equivalent 'Set' may be there to set the cursor. please check MSDN.
Ravi Kiran