Jump to content
  • Advertisement
Sign in to follow this  
floatingwoods

OpenGL CFrameWnd without view?

This topic is 3681 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();
LPCTSTR theClass=AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_OWNDC|CS_DBLCLKS,0,0,LoadIcon(aa,MAKEINTRESOURCE(IDR_MAINFRAME)));
mainWindow->Create(theClass,"My Application",WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN|WS_CLIPSIBLINGS);	


Now I tried to add an AVI screen capture class (http://www.codeproject.com/KB/audio-video/avigenerator.aspx) 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
Advertisement
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!