Print Page | Close Window

MDI flicker when using OpenDocumentFile

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7044
Printed Date: 15 May 2024 at 8:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI flicker when using OpenDocumentFile
Posted By: znakeeye
Subject: MDI flicker when using OpenDocumentFile
Date 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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net