View Full Version : zoom control using mouse scroll

10-31-2009, 11:39 PM
Please pardon me if this is not the right place for this post but can someone tell me the win32 key codes for mouse scroll. Like how WM_LBUTTONDOWN is for left button down. I want to use the scroll wheel to zoom in and out in my opengl application. I use visual c++ 6.0

11-01-2009, 03:53 AM
The windows message generated when mouse wheel is rolled is, how ingenious, WM_MOUSEWHEEL. :)

Why don't you use Class Wizard? This message is listed along with all others.