CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    34

    Get cursor position

    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.


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Get cursor position

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured