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. Windows API
  4. endless WM_MOUSEWHEEL events

endless WM_MOUSEWHEEL events

Scheduled Pinned Locked Moved Windows API
c++question
10 Posts 3 Posters 24 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.
  • E Offline
    E Offline
    ed welch
    wrote on last edited by
    #1

    I'm trying to handle mouse wheel events in the WndProc function and wrote c++ code that works fine with one mouse that has a fly-wheel. I tried the same code with another mouse and I get endless WM_MOUSEWHEEL events when I move the mouse wheel just one notch. Anyone know why this is happening?

    L 1 Reply Last reply
    0
    • E ed welch

      I'm trying to handle mouse wheel events in the WndProc function and wrote c++ code that works fine with one mouse that has a fly-wheel. I tried the same code with another mouse and I get endless WM_MOUSEWHEEL events when I move the mouse wheel just one notch. Anyone know why this is happening?

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

      Sounds like a possible hardware error. Does it happen in other applications with the "bad mouse"?

      One of these days I'm going to think of a really clever signature.

      E 1 Reply Last reply
      0
      • L Lost User

        Sounds like a possible hardware error. Does it happen in other applications with the "bad mouse"?

        One of these days I'm going to think of a really clever signature.

        E Offline
        E Offline
        ed welch
        wrote on last edited by
        #3

        No, it's not a hardware problem. There's nothing wrong with the mouse

        L 1 Reply Last reply
        0
        • E ed welch

          No, it's not a hardware problem. There's nothing wrong with the mouse

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

          It seems very odd that one mouse works correctly but the other generates lots of messages. That implies that there is something wrong with the second mouse.

          One of these days I'm going to think of a really clever signature.

          E 1 Reply Last reply
          0
          • L Lost User

            It seems very odd that one mouse works correctly but the other generates lots of messages. That implies that there is something wrong with the second mouse.

            One of these days I'm going to think of a really clever signature.

            E Offline
            E Offline
            ed welch
            wrote on last edited by
            #5

            no, it works fine. It is definately not hardware. I could be that one mouse is fly wheel and other is not, or it could be that the code I'm using is wrong in someway

            L 1 Reply Last reply
            0
            • E ed welch

              no, it works fine. It is definately not hardware. I could be that one mouse is fly wheel and other is not, or it could be that the code I'm using is wrong in someway

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

              Could it be a "helpful hidden feature" of the mouse-driver? :)

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

              E 1 Reply Last reply
              0
              • L Lost User

                Could it be a "helpful hidden feature" of the mouse-driver? :)

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

                E Offline
                E Offline
                ed welch
                wrote on last edited by
                #7

                Yes, but that would affect all applications, which it clearly isn't.

                L 1 Reply Last reply
                0
                • E ed welch

                  Yes, but that would affect all applications, which it clearly isn't.

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

                  No, it would not; some programmers would simply take the first message, and ignore the repeating drivel, just like you would with spurious wm_mousemove messages. Update the drivers :)

                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

                  E 1 Reply Last reply
                  0
                  • L Lost User

                    No, it would not; some programmers would simply take the first message, and ignore the repeating drivel, just like you would with spurious wm_mousemove messages. Update the drivers :)

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

                    E Offline
                    E Offline
                    ed welch
                    wrote on last edited by
                    #9

                    Not really. There's no way to tell which are real events and which are the spurious ones. At least, there's no way I know.

                    S 1 Reply Last reply
                    0
                    • E ed welch

                      Not really. There's no way to tell which are real events and which are the spurious ones. At least, there's no way I know.

                      S Offline
                      S Offline
                      SledgeHammer01
                      wrote on last edited by
                      #10

                      You haven't posted any code or shown what any of the "extra" WM_MOUSEWHEEL events you are getting look like and unfortunately, my crystal ball is in the shop, so you might want to post that kind of information. My guess is that its something in your code, but until I see the messages or your code, I can't really give you any advice beyond that. Darn crystal ball shop, they are taking FOREVER to get my ball fixed.

                      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