PDA

View Full Version : SetPixelFormat



link19
01-23-2001, 11:45 AM
Hi
Im using VC++, and my app is an MFC exe. I have 2 views that are OpenGL enabled and that i can switch back and forth to and from. After adding the second view, i could no longer see the rendering in my first view. Ive seen similar posts on other forums, and they make reference to wglMakeCurrent(), but ive played with it and just cant make it perform as id like. I isolated the problem to the SetPixelFormat call in the SetWindowPixelFormat function in the second view. If i comment this out...i get my rendering (but the second view is not OpenGL enabled). Suggestions please...
TIA