PDA

View Full Version : Urgent!!!!!



cwc36
09-29-2002, 07:20 PM
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?

Mazy
09-29-2002, 11:47 PM
Do you repaint the maniwindow when it gets the repaint message? the doublebuffering dont help you with that.

cwc36
09-30-2002, 09:20 PM
Thank u ..i had solved the problem already..
I forgot repaint...