View Full Version : OpenGL Dialog Box?

11-24-2001, 07:47 PM
I am trying to have a seperate OpenGL scene on a pop-up dialog box to show a preview of what the main scene will look like after the user performs a function. I'm guessing that the dialog will need it's own DC and RC (the RC being a copy of the main scene). I'm not sure if this is correct and then after that how do I actually get the scene to be shown on the dialog box? Is this even possible? If anybody could help it would be greatly appreciated... thanks


11-25-2001, 07:17 AM

On my website http://www.steinsoft.net I have a little application showing how to draw something on a dialog box. The code may help you to do what you want. I don't know whether it is possible as there can be only one OpenGL RC per thread. You must simply try..


[This message has been edited by Stonemaster (edited 11-25-2001).]

11-25-2001, 01:27 PM
There's some info about it at CodeGuru (http://www.codeguru.com/opengl/index.shtml).

There may only be one RC, but it can be reused by different windows.