user882243
user882243

Reputation: 46

OnMouseWheel event with MFC

I am having some problems with the ON_WM_MOUSEWHEEL event and MFC. The function handling the event does get called, but not when scrolling, just when "pinching" the touchpad. Is it supposed to behave like this?

I am using Visual Studio 2010 and Windows 7.

Upvotes: 2

Views: 2325

Answers (2)

TheSteve
TheSteve

Reputation: 1158

I've noticed that some touchpad drivers implement scrolling using the WM_VSCROLL message, however since the java AWT's mouseWheelListener is working, my recommendation would be:

Open Spy++ and verify whether or not WM_MOUSEWHEEL messages are being posted.

If messages are not being posted the control might not have focus.

If messages are being posted, it might be a problem with the way the control is attempting to receive the message. In this case, showing us the message map might help.

Upvotes: 1

l33t
l33t

Reputation: 19966

Take a look at the WM_TOUCH message.

Upvotes: 0

Related Questions