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. Problem in scrolling a dialog.

Problem in scrolling a dialog.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • C Offline
    C Offline
    chandu004
    wrote on last edited by
    #1

    iam trying to scroll the controls in a dialog. i used ScrollWindow(....). to achieve this. i gave ctrl+down and up arrow keys to scroll up or down. till here no problem. but when i drag the slider available on the right side of the dialog, down or up, the controls are getting scrolled(obviously after some coding) but, the slider is moving back to its initial position. any ideas? to brief my problem, i want the slider in my dialog to stand at the place where i have left it, and also i should be able to get its position. thaks for any help.

    N 1 Reply Last reply
    0
    • C chandu004

      iam trying to scroll the controls in a dialog. i used ScrollWindow(....). to achieve this. i gave ctrl+down and up arrow keys to scroll up or down. till here no problem. but when i drag the slider available on the right side of the dialog, down or up, the controls are getting scrolled(obviously after some coding) but, the slider is moving back to its initial position. any ideas? to brief my problem, i want the slider in my dialog to stand at the place where i have left it, and also i should be able to get its position. thaks for any help.

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

      Does Get/SetScrollPosition (...) helps? I mean, when you click down and moving the mouse you use Get... to know where the viewport is, then when you release he button use Set... with the last ScrollPosition value.

      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

      C 1 Reply Last reply
      0
      • N Nelek

        Does Get/SetScrollPosition (...) helps? I mean, when you click down and moving the mouse you use Get... to know where the viewport is, then when you release he button use Set... with the last ScrollPosition value.

        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

        C Offline
        C Offline
        chandu004
        wrote on last edited by
        #3

        thanks nelek for your response. but iam unable to know the bar id (nbar) of the scroll bar. please note, i ve checked the "Enable Vertical Scroll" property of the dialog. if possible, please do me a favour. take a dialog based application in vc6.0, enable the scroll bar option in that, then try dragging the scroll bar and see. now you can easily understand my problem and iam sure you can solve it. please do this for me my friend, because iam stuck up there, and unable to deliver the application to the client. thank you. if required, i can send my source code to you.

        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