Print Page | Close Window

MDI Documents Flicking

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=1622
Printed Date: 07 May 2024 at 1:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Documents Flicking
Posted By: Vitaly
Subject: MDI Documents Flicking
Date Posted: 05 January 2005 at 4:14am

Using OfficeXP or Office2003 style for MDI interfaces, where you get tabs for documents, produces flicking when switching between documents. In one of your examples i saw the code where you adjust initial size of documents to avoid flicking to be too obvious, i.e. when frame window is redrawn more often than needed. However, this still leaves the issue with flicking, and it is way different visually from when using normal MDI presentation without tabs.

Any chance to fix that?

 




Replies:
Posted By: dennisV
Date Posted: 05 January 2005 at 6:45pm
I have the same problem about which I posted a while ago (no reply though)...

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Vitaly
Date Posted: 06 January 2005 at 9:32am

Got it! You always have to override on erase background like this:

BOOL CTemplateEditorView::OnEraseBkgnd(CDC* pDC)

{

return TRUE;

}



Posted By: dennisV
Date Posted: 06 January 2005 at 3:50pm

Doesn't help me in the View class, perhaps it should be in the Frame holding the View?

Thanks,



-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Vitaly
Date Posted: 07 January 2005 at 3:45am

no, for me it made a world of difference:

1. onerase returns true

2. background is drawn from within CView::OnDraw

3. The view is derived from CScrollView

Check out their example called drawcli.exe, and the project itself where they solved the problem with flickering.

 

 



Posted By: dennisV
Date Posted: 07 January 2005 at 4:00am
Well, my view is derived from CXTPReportView and the area that flickers is only the top part where it says "Drag column headers here...", the rest of it doesn't flicker even without overriding the OnEraseBgnd(), I guess it's a different case.

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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