View Full Version : How to use OpenGL in dialog boxes or form views?

05-02-2001, 07:08 AM
I'm working on a MFC-based windows program. right now i need to embedd an OpenGL window in a static control to be used in a dialog box or a form view, any info appreciated!

05-02-2001, 08:09 AM
If you're using MFC, make a derived class of CStatic. Pretend that the CStatic is just a CWnd, and do all your normal OpenGL stuff. Problem solved. And you will need to do some subclassing in order to throw this in the dialog template.

Unfortunately, I don't know nearly as much about pure Win32 programming as I do about MFC, so if you're not using MFC, I can't help you.

05-02-2001, 01:42 PM

05-03-2001, 04:18 AM
Good example here of OpenGL in a dialog... http://codeguru.earthweb.com/opengl/texture_mapping.shtml