Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. What is the two-finger scroll event (MFC app)?

What is the two-finger scroll event (MFC app)?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++css
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alan Balkany
    wrote on last edited by
    #1

    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

    L 2 Replies Last reply
    0
    • A Alan Balkany

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A Alan Balkany

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I think you will find that two-finger touchpad scrolls will generate standard scroll messages: WM_MOUSEWHEEL, WM_VSCROLL or WM_HSCROLL as appropriate. Should be easy enough to test.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups