Maybe you can see/adapt the MSDN sample to display a bitmap with scrollbars handling
Example of Scrolling a Bitmap
(I tested it in a C++/Win32 app on Windows 10, it works fine)
Scrolling glitch with HBITMAP BitBlt c++
kasmer
66
Reputation points
It renders the pages when you are looking at that page.
The problem is when I scroll, it glitches.
Commenting out the pDC->FillSolidRect code makes the background glitchness, but still has the flickering when scrolling.
I was told to issue 4 FillSolidRect calls for the border strips only or to erase the border in the off-screen device context, but I don't know how.
May anyone supply examples on how to fix this, as it seems I am double buffering just fine?
EDIT: SAME THING HAPPENS IN THE IMAGE HERE: https://i.stack.imgur.com/OyN3V.jpg https://i.stack.imgur.com/LRc96.png
Accepted answer
-
Castorix31 81,636 Reputation points
2021-03-04T15:41:20.51+00:00