|
-
April 15th, 1999, 11:20 PM
#1
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!
-
April 16th, 1999, 01:01 AM
#2
Re: movemouse
void CView2D::MouseSetPos(int x,int y) {
CPoint bod(x,y);
ClientToScreen(&bod);
SetCursorPos(bod.x,bod.y);
}
-
April 19th, 1999, 03:31 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|