PDA

View Full Version : opengl window in a dialog box



birju
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.

NewROmancer
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...

NewROmancer

Relic
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.

freezama
08-16-2000, 10:13 PM
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