Jump to content
  • Advertisement


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


VC .NET MFC Update CVIew

This topic is 5371 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 have a MFC SDI Application in Visual C++ .NET. I have my CWinApp, CDocument, and CView classes. For the CView class, I overloaded the OnDraw and OnUpdate functions so that OnUpdate calls OnDraw. For CWinApp, I overloaded the OnIdle function. What I want to do is make the CWinApp::OnIdle function force the CView class to call its OnDraw function every frame. How do I go about doing this? I''ve tried calling GetMainWnd()->Invalidate(false); I''ve even tried calling GetNextDocTemplate and then with that call variable make the CDocument class update the views. But none of these methods work. All I want to do is cause the CWinApp OnIdle function to force every view to call their OnDraw functions each frame. Any ideas??

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.

GameDev.net 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!