Click to See Complete Forum and Search --> : movemouse


Yoh-hei
April 15th, 1999, 11:20 PM
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!

real name
April 16th, 1999, 01:01 AM
void CView2D::MouseSetPos(int x,int y) {
CPoint bod(x,y);
ClientToScreen(&bod);
SetCursorPos(bod.x,bod.y);
}

Yoh-hei
April 19th, 1999, 03:31 AM
Hello:
Thank you very much!
It's run very good,like your said.