How to add scrolling support to a program?

Hello everybody,,

This is my first post in this forum, which I joined because I think that I will find my answer in it. My problem is I have a program working under Windows and I need to add scrolling support for that program. I mean I need to scroll inside the program using the mouse wheel provided that the arrow keys can scroll. Is there any trick using C++ or any other trick that can overcome this problem??
There is no trick. It's called coding. You must intercept the mouse wheel and then do whatever you do.
Petzold has a whole section on this in his book, fifth edition. In fact, Petzold has a number of sections demonstrating scrolling --

http://www.amazon.com/Programming-Windows-Microsoft-Charles-Petzold/dp/157231995X/ref=sr_1_1?ie=UTF8&s=books&qid=1274814626&sr=1-1
Last edited on
Topic archived. No new replies allowed.