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. Mouse scroll wheel

Mouse scroll wheel

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.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    I have a CFormView with several pages. For some reason, if I use the mouse wheel, a page will scroll up and down using the mouse wheel. For other pages, the mouse wheel doesnt work. I have studied the 2-pages ad nausem and I cant figure out what is different from one page to the other; why one page uses the mouse wheel and the other doesnt. Any ideas? Any direction any one can give me will be greatly appreciated. Sincerely, Danielle Brina (an overworked graduate student)

    M I 2 Replies Last reply
    0
    • D DanYELL

      I have a CFormView with several pages. For some reason, if I use the mouse wheel, a page will scroll up and down using the mouse wheel. For other pages, the mouse wheel doesnt work. I have studied the 2-pages ad nausem and I cant figure out what is different from one page to the other; why one page uses the mouse wheel and the other doesnt. Any ideas? Any direction any one can give me will be greatly appreciated. Sincerely, Danielle Brina (an overworked graduate student)

      M Offline
      M Offline
      Michel Godfroid
      wrote on last edited by
      #2

      Check if your CFormview still owns the scrollbar. If not, no scrolling. Also there is a bug in MFC 7.1 and 8.0 which can cause this behaviour. If all else fails implement your own ::OnMouseWheel.

      1 Reply Last reply
      0
      • D DanYELL

        I have a CFormView with several pages. For some reason, if I use the mouse wheel, a page will scroll up and down using the mouse wheel. For other pages, the mouse wheel doesnt work. I have studied the 2-pages ad nausem and I cant figure out what is different from one page to the other; why one page uses the mouse wheel and the other doesnt. Any ideas? Any direction any one can give me will be greatly appreciated. Sincerely, Danielle Brina (an overworked graduate student)

        I Offline
        I Offline
        Intersect
        wrote on last edited by
        #3

        Normally the View should scroll by default. Mostly you have such problem when you have some control over the form, you will need to handle Scroll messages in the control in this case.I can scroll with the wheel in a CFormView application. If no controls is placed in your form too, then I suggest you to try your application on a different machine, see if there is any changes?

        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