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