flash in Dialog

Hi,teachers!

If I redraw a object in Dialog with this->InvalidateRect(&rect,FALSE), my screen is always flashing.
How can I do when I want to redraw a object in Dialog without flashing?

thanks!

By making sure that the screen doesn’t get cleared to white before you paint it. This is done in a different way on each windowing system API. I suggest you find the proper forum for questions about the specific windowing system API you’re using, and ask there.

be sure that the doubleBuffer is OFF