What is the two-finger scroll event (MFC app)?
-
I'm trying to adapt an MFC custom grid control to handle two-finger touchpad vertical scrolls. Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine. There doesn't seem to be any documentation on this. Can someone tell me the secret two-finger-scroll event, or point me in the right direction? Thanks! Alan
-
I'm trying to adapt an MFC custom grid control to handle two-finger touchpad vertical scrolls. Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine. There doesn't seem to be any documentation on this. Can someone tell me the secret two-finger-scroll event, or point me in the right direction? Thanks! Alan
Hi,
Alan Balkany wrote:
There doesn't seem to be any documentation on this.
I think you are looking for the WM_GESTURE message[^].
Alan Balkany wrote:
Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine.
Just manually add the message handler... it's a standard window message. Best Wishes, -David Delaune
-
I'm trying to adapt an MFC custom grid control to handle two-finger touchpad vertical scrolls. Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine. There doesn't seem to be any documentation on this. Can someone tell me the secret two-finger-scroll event, or point me in the right direction? Thanks! Alan