PDA

View Full Version : About blinking in a MDI Interface (VC++)



uNsignedINT
06-02-2003, 07:20 AM
Hi, I'm having some problems with my MDI app. When i move the mouse the viewport keeps blinking!!! How do I stop this!!???

Thanks!!

mikael_aronsson
06-02-2003, 09:21 AM
Hi !

It could be OnEraseBkgnd() (WM_ERASEBKGND)

If you don't handle it, MFC will repaint the window and then the OpenGL contents will be rendered on top of this, this might cause the "blinking"

Just add a handler for WM_ERASEBKGND and I think you should return FALSE, but check the docs on it.

Mikael