Click here to Skip to main content
15,942,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I managed to find a comprehensive article about how to simulate mouse left and right buttons, but nowhere can I find a single post or article or comment or code about how to simulate the mouse wheel. I'm completely lost. :_(
Can somebody point me to a sample code or place to look for to simulate the mouse wheel in C? Thanks!
Eugen Podsypalnikov 24-Sep-10 1:44am    
What is your simulation context ?
At a valid window handle,
you could try to post the messages WM_MOUSEWHEEL, WM_RBUTTONDOWN, ... :)

1 solution

Application handle mouse movements by handling messages like

Just send to the window handle those messages (via SendMessage) and it will react accordingly.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900