PDA

View Full Version : multiple window issue



dlswimmer
05-21-2004, 04:45 AM
I am having a problem with trying to open two opengl windows. I am using VC++ .NET and have created a form with a opengl panel in it. The form works great on its own, and even when put in an MDI form as a child. what I am now trying to do, is have two instances of the same form open at the same time. The problem is that the one form is taking all rendering and action control over the other form. I know that this can be done because I have seen it. I just can't figure out what I have done wrong. Here is a link to the form in which I have the opengl and then here is a link to the form in which I call the two windows. Thank you anyone if you can find what I have done wrong.

form.cpp (http://people.clemson.edu/~rlieber/cbtest2.cpp) form.h (http://people.clemson.edu/~rlieber/cbtest2.h) mdi window (http://people.clemson.edu/~rlieber/Form1.h)

dlswimmer
05-21-2004, 06:57 AM
i tried to set the context with wglMakeCurrent like I found in another document when I draw, but it still doesn't draw anything but the newest opengl window.