Jump to content
  • Advertisement

Archived

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

Mr_Black

OpenGL Problems with OpenGL in a MDIChild using MFC

This topic is 6801 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
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!