• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 475
  • Last Modified:

Set cursor position

How could I set the cursor position in a dialog box?
OnMouseMove gives me the position of the mouse, but I want
to force that position to be something else.

1 Solution
Simply use the Win32 API 'SetCursorPos()' to set the cursor to any position you want to...
pchalouxAuthor Commented:
Oh!  It was that easy !
I don't have MSDN Librairy installed, that why I haven't found it.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now