CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: movemouse

  1. #1
    Join Date
    Apr 1999
    Posts
    79

    movemouse

    hello:
    If I get a point on screen use LbuttonDown,and then I want mouse
    cursor move to other position of client windows.(that's said use
    WM_LbuttonDown message control cursor move to every where)Which function
    can do it?(I use VC++ MFC ScrollView)
    Every advice. Thank you!




  2. #2

    Re: movemouse

    void CView2D::MouseSetPos(int x,int y) {
    CPoint bod(x,y);
    ClientToScreen(&bod);
    SetCursorPos(bod.x,bod.y);
    }



  3. #3
    Join Date
    Apr 1999
    Posts
    79

    Re: movemouse

    Hello:
    Thank you very much!
    It's run very good,like your said.


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