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