Thank you for posting your code -it has been really helpful to me as I learn OpenGL. One thing (that you probably weren't concerned about) is that you don't release the Windows device context after OnPaint has been completed. I found that this caused some problems when many documents were opened. If the context is released at the end of the OnPaint using "wglMakeCurrent(NULL,NULL)" it seems to work better (this necessitates the creation and release of a Window's device context in the OnSize method too).
Hi, I am from india, Tamilnadu.
Now I learning OpenGL for my project.
Your article is very useful for my project
for the taking first step without fear.
Really Thanks and I expect other usefull materials.