how prevaricate nictitate while doing wm_erasebkgnd windows dialog
i have dialog resizes. also tradition credentials i paint response wm_erasebkgnd (currently rudimentary fillsolidrect).
when dialog resized, there extensive flickering going on. try devaluate flickering i enumerate child windows supplement writing region. seems assistance small -- flickering mostly clear child controls repaint.
how i dialog flicker-free while resizing? i think double-buffering contingency play part, nonetheless i'm certain dialog child controls (without origination child controls owner-draw something that).
i should note i'm controlling c++ (not .net), mfc, nonetheless pristine win32-based solutions welcomed :)
note: thing i attempted nonetheless didn't work (not certain why) was:
cdc memdc;
memdc.createcompatibledc(pdc);
memdc.fillsolidrect(rect, backgroundcolor);
pdc->bitblt(0, 0, rect.width(), rect.height(), &memdc, 0, 0, srccopy);
Comments
Post a Comment