OpenGL Dialog Box?

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



On my website 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).]

There’s some info about it at CodeGuru (

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