I have a problem with how my scrollbars are drawn. Due to external constraints (my application is a plugin running in an external window that insists on painting on 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 scroll bar is displayed smoothly and sequentially. However, when I receive a message SB_LINEDOWN(i.e. when I press the arrow down / right), the scroll bar flickers terribly ( Example with a low frame rate ). Again, all other messages work fine.
I tested removing the scroll bar position update (still broken) and removing the actual scroll code (Still broken). I have already buffered the area twice to prevent even worse flickering.
What can cause this and how can I fix it?
source
share