WinAPI Double Buffered

By default, a winAPI application does not have double buffering. Instead, he does a very, very good job of ensuring that only what he needs to draw is drawn, and that gives him a seamless look. However, when you resize the window, you need to redraw the whole thing, and this causes flickering between the controls, the background on the tab, and sometimes the white tab.

So my question is: what is the easiest way to support double buffering in my application?

+3
source share
2 answers

Create a window-sized bitmap, render it into that bitmap and run it back into the window when you're done.

. , , , , DC, .

- . .

+6

: .

(DC) , . .

, .

+1

Source: https://habr.com/ru/post/1768725/


All Articles