Urgent!!!!!

I had created a Interface(main)with a viewport in MFC,which viewport will run the opengl source code to render … Then i created one more dialog box to render as a (child) window to render other scene.

The problem is when i closed the child window.The contents of the child window still map on the main window.

Even i had used swapbuffers and double buffering .The over map just look like when we use single buffer to …

can anybody tell me what happen to my program?

Do you repaint the maniwindow when it gets the repaint message? the doublebuffering dont help you with that.

Thank u …i had solved the problem already…
I forgot repaint…