Advertisement Jump to content
Sign in to follow this  

OpenGL CFrameWnd without view?

This topic is 3835 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, I have a framework to display my OpenGL screen that works fine. I derived the class CMainWindow from CFrameWnd. I create the window with following code:
HINSTANCE aa=AfxGetInstanceHandle();

Now I tried to add an AVI screen capture class ( that requires to have access to a CView object. However when I call GetActiveView(), the return value is always NULL. How can I get the associated CView object, or does an associated CView object exist in my case? (I have just one simple rendering window with a toolbar docked at the top, nothing fancy) Actually, all I need for the AVI capture class to work is a BITMAPINFOHEADER structure associated with my OpenGL drawing. Where can I get that one? Thanks for any suggestion/help!

Share this post

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

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