View Full Version : opengl window in a dialog box
08-16-2000, 03:53 PM
Does anyone know if it is possible to have an opengl child window within a dialog box? If so could you tell me how because all the code I have seen says you need to make the window stye WS_POPUP but a WS_POPUP cannot be a WS_CHILD. Thanks.
08-16-2000, 09:05 PM
Yes you can! But I don't know how. I posted the question: Can I make a Ogl window into a MDI (so my window is a child of the MDI) and they said that yes I can. All you should do is to create the window and to specify the pixel format. After that you get the DC and the rendering context and...
08-16-2000, 10:11 PM
OpenGL windows must have the styles WS_CLIPCHILDREN and WS_CLIPSIBLINGS set. Otherwise the pixelformat selection may fail.
There is no other constraint on the type of window, AFAIK.
08-16-2000, 10:13 PM
and get the zip-file: bavestre.zip
it has all what you need
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.