Problems with OpenGL in a MDIChild using MFC
I''m currently trying to drawto a MDI child window using OpenGL using MFC. Now every thing works well to begin with, it displays a rotating triangle on a black background, which is what it is supposed to do. But if I try to resize the Child window is stops drawing the triangle and just gives me the black backdrop. I shouldn''t be losing the DC as I''m using a global CClientDC. Does any know what my be causing this and how to fix it?
Any help would be much apppreciated.
I don't know very much about MFC but i've used C++ Builder for similar apps.
OpenGL may be loosing focus on it's context. Try the function wglMakeCurrent . It should be documented in the win32 help files somewhere...
Paul Groves.
http://home.clara.net/paulyg
OpenGL for Beginners
Edited by - Pauly on 3/8/00 7:37:04 AM
OpenGL may be loosing focus on it's context. Try the function wglMakeCurrent . It should be documented in the win32 help files somewhere...
Paul Groves.
http://home.clara.net/paulyg
OpenGL for Beginners
Edited by - Pauly on 3/8/00 7:37:04 AM
Paul Grovespauls opengl page
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement