Jump to content
  • Advertisement
Sign in to follow this  
Code Is Your Friend

Virtual mouse move? (MoveTo)

This topic is 3668 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!