MFC window Flash

I do as the say in the FAQ, overriding the OnEraseBkgnd but my MFC window still flashes. Doublebuffering is enabled and swapbuffers is called. Why does the MFC window still flash everytime?

This forum is for people running games and applications, and who are having trouble.

This one is for OpenGL, programming, Windows;f=9