PDA

View Full Version : MFC and OpenGL



10-24-2001, 11:08 AM
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?

Korval
10-24-2001, 03:58 PM
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?

10-25-2001, 02:51 AM
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.