سؤال

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