Jump to content
  • Advertisement
Sign in to follow this  

OpenGL OpenGL with MFC problem

This topic is 5056 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

Hello everyone, I have a question about using OpenGL with MFC. I have written John Conway's Life using OpenGL for the graphics and MFC for the window and buttons. I have everything working just fine except for one thing. When the window first opens you can't see the four buttons that I created. The part of the window where the buttons should be looks transparent, like you see right through the entire window onto the desktop. When you move the window you can see all four buttons and when you press a button you can see that button, but when you resize the window the buttons look transparent again. I have overridden OnSize but not OnMove or whatever the movement message handler is so I am sure that it is something that I did or didn't do. I would post source code here but there is a lot of it and I'm not sure where the problem is and I don't want to post the entire program. I was hoping that someone here would have encountered the same problem before and could at least advise me on what to try.

The code is here.

The game is here if anyone needs to see what I'm talking about.

Thanks for any help in advance.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!