Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - MDI flicker when using OpenDocumentFile
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI flicker when using OpenDocumentFile

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: MDI flicker when using OpenDocumentFile
    Posted: 05 May 2007 at 7:10am
Hi,
 
Consider adding this in CMainFrame::InitInstance():
for (int i = 0; i < 20; i++)
    pDocTemplate->OpenDocumentFile(NULL);
 
I just tried that in your MDITabWindows sample, and it works just fine. However, if the views are of somewhat more complicated nature, the title (among other things) of the main frame will flicker like hell.
 
How can I prevent that? I simply want to add all documents/views and then make them visible and then make the last one active - with no flicker!
 
Thanks!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.