Sign in to follow this  
Code Is Your Friend

Virtual mouse move? (MoveTo)

Recommended Posts

Hey, I am really just looking for a replacement for MoveTo, which only works with CClientDC. I need the same sort of thing, moving the mouse withought physically moveing the mouse. I need to use it in conjunction with LineTo which fortunatly, works with or without CClientDC. So are there any functions available that can do the same thing? I am using windows xp, vis studio 08 and mfc is fine. Thanks, Matt

Share this post


Link to post
Share on other sites
CClientDC::MoveTo has nothing to do with the mouse. It's just a thin wrapper around the Win32 API MoveToEx.

SetCursorPos *is* for moving the mouse, but it has absolutely nothing to do with drawing lines.

Your post is confusing. If you're using MFC why can't you use CClientDC::MoveTo?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this