MFC and OpenGL

I am writing a program using OpenGL in an MDI. I was wondering if anyone knows how to animate properly so that the screen doesn’t flicker. Also does anyone know how to make a color flash?

In general, you probably shouldn’t name two messages that are on different topics the same.

As for your first question, override CWnd::OnEraseBkgnd in your CView-derived class. Return TRUE to tell Window’s not to erase the background.

On your second question, what is a color flash?

Forgive the same title. And thank you for responding to my questions. By color flash I meant, how to make it look like the color is flashing or blinking. Also I have tried to override the OnEraseBkgnd() but that does not work.