PDA

View Full Version : [Q]Dialog base program for OpenGL



SH Lee
09-06-2001, 02:59 AM
Hi:
I am trying to draw an 3D object onto a dialog base application. The dialog box has edit boxes and radio buttons and so forth.
If I use single buffering then I can get both the object and the dialog controls to display on the dialog box, but the object is screwed up.
If I use double buffering then the object is perfect, but I lose the dialog controls. Does anyone have experience or can provide some sort of help please.

email : war3@icitiro.com

mikael_aronsson
09-06-2001, 10:19 AM
Hi !

Not sure about the rendering problem, but make sure that the child window the has the GL context also has the WS_CLIPCHILDREN and WS_CLIPSIBLINGS flags set, ot else your controls will be overwritten by OpenGL.

Mikael