Click to See Complete Forum and Search --> : OpenGL in a CStatic Object
April 2nd, 1999, 06:02 PM
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 . . .
Gomez Addams
April 2nd, 1999, 07:13 PM
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.
April 2nd, 1999, 10:01 PM
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 . . .
jfly
May 10th, 2000, 01:50 AM
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:)
Sam Hobbs
May 10th, 2000, 02:29 AM
Is the static control a bitmap type?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.