Button flicker in views

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello all,

I'm struggling with what should be a simple concept that I'm hoping
someone can enlighten me...

I have several wizard-type views (property pages) in which I fill the
entire background with a bitmap. I then have pushbuttons drawn on top
of it.

I'm getting this annoying flashing each time the views are switched.

In my OnEraseBkgnd which fills the window with the background bitmap, I
return a TRUE. The docs for OnEraseBkgnd say "Nonzero if it erases the
background; otherwise 0."

The buttons have the VISIBLE checkbox off in the res editor. They
shown in the OnInitDialog.

What am I missing?!

Thanks,
-Vin

.


Quantcast