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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT

IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 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.
  • K Offline
    K Offline
    Killer3
    wrote on last edited by
    #1

    IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT when the focus is on the LISTBOX. When ListBox has only the Horizontal scrollbar,the MOUSE SCROLL Event is by default linked to the HORZIONTAL SCROLL movement. Is there any way to HANDLE this behaviour? Is there any way to STOP this behaviour? Can any one clarify? UNABLE TO HANDLE WM_MOUSEWHEEL WHEN THE FOCUS is on the LISTBOX. for thendral

    V S 2 Replies Last reply
    0
    • K Killer3

      IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT when the focus is on the LISTBOX. When ListBox has only the Horizontal scrollbar,the MOUSE SCROLL Event is by default linked to the HORZIONTAL SCROLL movement. Is there any way to HANDLE this behaviour? Is there any way to STOP this behaviour? Can any one clarify? UNABLE TO HANDLE WM_MOUSEWHEEL WHEN THE FOCUS is on the LISTBOX. for thendral

      V Offline
      V Offline
      V_shr
      wrote on last edited by
      #2

      Yes use " mouse_event(MOUSEEVENTF_WHEEL,0,0,x,GetMessageExtraInfo()); " and x is how much do you want weel to move . also you can see mouse_event in help . hope to be useful

      1 Reply Last reply
      0
      • K Killer3

        IS IT POSSIBLE TO HANDLE MOUSE SCROLL EVENT when the focus is on the LISTBOX. When ListBox has only the Horizontal scrollbar,the MOUSE SCROLL Event is by default linked to the HORZIONTAL SCROLL movement. Is there any way to HANDLE this behaviour? Is there any way to STOP this behaviour? Can any one clarify? UNABLE TO HANDLE WM_MOUSEWHEEL WHEN THE FOCUS is on the LISTBOX. for thendral

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        Yes, subclass the listbox and handle the mouse messages yourself. Steve

        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