View Full Version : How to use OpenGL in dialog boxes or form views?
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, 09: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-03-2001, 05:18 AM
Good example here of OpenGL in a dialog... http://codeguru.earthweb.com/opengl/texture_mapping.shtml
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.