Advertisement Jump to content


This topic is now archived and is closed to further replies.


OpenGL Problems with OpenGL in a MDIChild using MFC

This topic is 6896 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post

Link to post
Share on other sites
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.
OpenGL for Beginners

Edited by - Pauly on 3/8/00 7:37:04 AM

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!