Virtual mouse move? (MoveTo)

Started by
1 comment, last by Anon Mike 15 years, 4 months ago
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
Advertisement
How about the SetCursorPos Win32 function?
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?
-Mike

This topic is closed to new replies.

Advertisement