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 whell scroll

mouse whell scroll

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

    Hi, I am using CResizableFormView for my Form and it has been derived from CFormView. The mouse wheel scroll seems to have got de-activated. In another application that uses just CFormView, the mouse wheel movement is automatically transfered to the scroll function. How do I implement this in CResizableFormView? There is also something else that I would like to do : When the button 'Results' is clicked, the Form should automatically scroll to that part where the results are visible. Just like in web-pages. Please can you give me an idea how this may do done? Thanks.

    _


    Fortitudine Vincimus!_

    N 1 Reply Last reply
    0
    • T Tara14

      Hi, I am using CResizableFormView for my Form and it has been derived from CFormView. The mouse wheel scroll seems to have got de-activated. In another application that uses just CFormView, the mouse wheel movement is automatically transfered to the scroll function. How do I implement this in CResizableFormView? There is also something else that I would like to do : When the button 'Results' is clicked, the Form should automatically scroll to that part where the results are visible. Just like in web-pages. Please can you give me an idea how this may do done? Thanks.

      _


      Fortitudine Vincimus!_

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      You can use the OnMouseWheel and call OnVScroll, or SetScrollPosition

      Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

      T 1 Reply Last reply
      0
      • N Nelek

        You can use the OnMouseWheel and call OnVScroll, or SetScrollPosition

        Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

        T Offline
        T Offline
        Tara14
        wrote on last edited by
        #3

        Thanks. Please can you tell me how to get hold of the windows scroll bars. I guess I must use CScrollBar * bar = new CScrollBar; bar->SetScrollPos(100,TRUE); But before calling SetScrollPos, I must get 'bar' to point to the CFormView's vertical scroll bars. What is the correct way to do this? Thanks.

        _


        Fortitudine Vincimus!_

        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