OpenGL in a CStatic Object
I was wondering if anyone new if i could attach my OpenGL picture into a CStatic object on my dialog based program? I have tried making a subclass of CStatic called COpenGLStatic, and making a member variable of the Static object in the dialog box a COpenGLStatic object. And in the COpenGLStatic i would put all my openGL code. The program complies and runnes, but where the COpenGLStatic is on the dialog box nothing shows up. So if anyone can help me i would be a very happy programmer, :)
Thanks . . .
Re: OpenGL in a CStatic Object
Check the OpenGL section of this site.
If I am not mistaken, there is an article about
using OpenGL in a dialog that could help.
Re: OpenGL in a CStatic Object
I have tried thoses example for a dialog, but if i make a button in the dialog window it flickers. That is why i am trying to make the OpenGL inside the CStatic object . . .
Re: OpenGL in a CStatic Object
You can try this way:
put a picture control in you dialog, add a formview to your project,
create the formview in the picture, draw opengl in the formview.
it may work:)
Re: OpenGL in a CStatic Object
Is the static control a bitmap type?