|
-
April 2nd, 1999, 07:02 PM
#1
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 . . .
-
April 2nd, 1999, 08:13 PM
#2
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.
-
April 2nd, 1999, 11:01 PM
#3
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 . . .
-
May 10th, 2000, 01:50 AM
#4
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
-
May 10th, 2000, 02:29 AM
#5
Re: OpenGL in a CStatic Object
Is the static control a bitmap type?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|