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

MDI Documents Flicking

 Post Reply Post Reply
Author
Message
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post Topic: MDI Documents Flicking
    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?

 

Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post 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;

}

Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Vitaly View Drop Down
Groupie
Groupie


Joined: 05 November 2004
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vitaly Quote  Post ReplyReply Direct Link To This Post 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.

 

 

Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post 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.

Edited by dennisV
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
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.191 seconds.