opengl window in a dialog box

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.

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…

NewROmancer

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.

just download
ftp://ftp.cuj.com/pub/1998/cujdec98.zip
and get the zip-file: bavestre.zip

it has all what you need

robert.nkolo@blaxxun.de