Scrolling glitch with HBITMAP BitBlt c++

kasmer 66 Reputation points
2021-03-01T16:21:09.373+00:00

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,417 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,525 questions
{count} votes

0 additional answers

Sort by: Most helpful