0

I have a windows desktop application where I am seeing jitters while scrolling. The WM_PAINT call is being handled failry fast 10ms.

-The WM_PAINT call is being forced using RedrawWindow after handling WM_MOUSEWHEEL so effectively I am drawing in the same cycle synchronously. Could this be a cause of problem by messing with dispatcher? Should I just invalidateRect and handle the paint in the WM_PAINT call. The answer I am looking for is how can I make scroll butter smooth something like chrome, so what should be the right strategy for scrolling.

-Should I draw a large viewPort and scroll on visible area using ScrollWindow and do all the invalidation offscreen, does this strategy work ?

Illuminati
  • 111
  • 7
  • Have you seen [Flicker-Free Displays Using an Off-Screen DC](https://learn.microsoft.com/en-us/previous-versions/ms969905(v=msdn.10))? It prevents Windows from providing the default handling of WM_ERASEBKGND messages firstly and then paints the window DC once. – YangXiaoPo-MSFT Nov 17 '22 at 06:24

0 Answers0