OpenGL display in a dialog bar

Hi,

 I have created a doc/view archictecture SDI program using MFC. I have rendering the OpenGL scene  in that CView. Apart from this, I am displaying dialog bar to the left of the screen. In that display bar, i need to keep a small OpenGL display.   I tried. But the CView is getting affected. Nothing is seen on the CView. The small OpenGL display on the dialog bar and the OpenGL display over the CView should be independent. Both should have the facilities to access them separately. How can i achieve it.? Help me, please..

Thank you in advance,
Sangeetha.

If I’m right each window should have separate OpenGL context. Before rendering you should make a context current.