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. slow scrollbar

slow scrollbar

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

    hi. I have created scrollbar in the application but the scrollbar move very slow when I clicked the two ends of the scrollbar. what should I do?

    M N 2 Replies Last reply
    0
    • A Aint

      hi. I have created scrollbar in the application but the scrollbar move very slow when I clicked the two ends of the scrollbar. what should I do?

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      ReturnRain wrote:

      what should I do?

      That depends on what you are doing in response to the WM_HSCROLL/WM_VSCROLL messages. If you are doing a lengthy/slow operation then it's going to be slow. Or maybe you need to scroll by a greater amount for each scrollbar unit scrolled. Mark

      "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

      1 Reply Last reply
      0
      • A Aint

        hi. I have created scrollbar in the application but the scrollbar move very slow when I clicked the two ends of the scrollbar. what should I do?

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

        Hi, it can depends on your UpdateWindow () too. If you are redrawing a lot of things it can difficult other things. Just take a look if other things go slow, and try to make your code faster. I had the same problem because I was bringing CObject derived classes and erasing them after the use. I solve my speed problem using pointers. I should not copy objects but accessing them directly. Take a look on your code :)

        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?

        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