PDA

View Full Version : reserve a zone in MFC application for opengl/buttons



07-12-2002, 06:23 AM
Hello, i want to develope a simple demo with opengl
i created a win32 application, but now i want to create MFC Appwizard Exe (VC++ 6) Dialog Based, and i want to deserve a zone to put a opengl view (a black screen to draw scenes), an another zone to put controls like buttons,..

How can i do this??

THANKS!!!

Deiussum
07-12-2002, 07:04 AM
You should just be able to put a static control on the dialog, then get the HDC for that control to use for initializing the OpenGL.

J P
07-13-2002, 04:12 AM
See www.mfcogl.com (http://www.mfcogl.com) for examples.