I tried to avoid flickering in GDI by creating a memory DC, loading a empty created bitmap in it, doing all the drawing to memory DC, and at the end BitBlitting to pDC. But yet, the flickering still happens? Why? Is it possible that is related to using EMF-s, or something like that? Thank you.

有帮助吗?

解决方案

You need to eliminate all other drawing directly to the screen. The usual culprit is WM_ERASEBKGND. Handle it and do nothing (because you'll put whatever background you want into the offscreen DC)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top