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. Handling Mouse Scroll on ListBox

Handling Mouse Scroll on ListBox

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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

    Requirement: 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? Thanks for thendral

    J _ 2 Replies Last reply
    0
    • K Killer3

      Requirement: 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? Thanks for thendral

      J Offline
      J Offline
      Justin Tay
      wrote on last edited by
      #2

      Are you referring to the mouse wheel? You could handle the WM_MOUSEWHEEL notification.

      K 1 Reply Last reply
      0
      • K Killer3

        Requirement: 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? Thanks for thendral

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        So do you want that the user may not be able to scroll through the list box items horizontally/Vertically Vision is Always important and so is your ATTITUDE. Wishes. Anshuman Dandekar

        1 Reply Last reply
        0
        • J Justin Tay

          Are you referring to the mouse wheel? You could handle the WM_MOUSEWHEEL notification.

          K Offline
          K Offline
          Killer3
          wrote on last edited by
          #4

          Unable to capture the mouse wheel event if the focus is on the LISTBOX. CAN u please help me out for thendral

          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