i have been doing some wheel stuff recently, too
i noticed a couple things...
first - the window must have focus
in my program, i have a main window
inside that is a child window with a trackbar for zoom
when the program opened, the wheel worked fine
after i clicked on the trackbar and moved it, the wheel stopped working
as it turned out - the trackbar took focus
i fixed it by adding a SetFocus,hChild at the end of the trackbar handler
another thing that i found was that, according to the documentation...
The DefWindowProc function propagates the message to the window's parent.
There should be no internal forwarding of the message, since DefWindowProc
propagates it up the parent chain until it finds a window that processes it.
oddly enough, i could not get wheel messages in the child WndProc
i put my wheel code in WndProc for the main window to get it to work
this may help...
instead of using a MessageBox, just use a short Beep to tell if you are getting messages
works ok, unless you are using Vista - then use MessageBeep