I have a problem with the way my scrollbars are drawn. Because of external limitations (my application being a plugin running in an external window that insists on painting over any regular child window), I have to use SCROLLBAR
-class windows (as opposed to using WS_CHILD | WS_VSCROLL
)
For almost every message received, the scrollbar is shown animating smoothly and consistently. However, when I receive the SB_LINEDOWN
message(i.e. when I click on the bottom/right arrow), the scroll bar flickers horribly (Low-framerate example). Again, all other messages work perfectly.
I have tested removing the scrollbar position update (Still broken) and removing the actual scrolling code (Still broken). I am already double-buffering the area to prevent an even worse flickering..
What might cause this and how could I fix it?