Multiple MFC views with OpenGL

Hi! I have 2 view classes in my MFC application, both are used to do OpenGL drawing. Hence, I have to customized both views for use with OpenGL. After customizing the first view, it works smoothly. However, after customizing the second view, both of the views can only display the background. When I resize the windows, the drawing appear again. Does anyone know how to customize 2 MFC views simultaneously for use with OpenGL?

Check if you use wglMakeCurrent()in your OnDraw() handler before drawing in the corresponding view - this may be the problem…
however using two different views is a slow solution, because wglMakeCurrent() is slow operation - as pointed by nVIDIA performance manual, you may use one view divided in two viewports …(if it’s possible)