Click to See Complete Forum and Search --> : Get cursor position


Andy K.
July 31st, 1999, 12:16 AM
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.

Ravi Kiran
July 31st, 1999, 01:54 AM
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