Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - MDI Docking Panes flickering in resizing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI Docking Panes flickering in resizing

 Post Reply Post Reply
Author
Message
flxrz View Drop Down
Newbie
Newbie


Joined: 30 October 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote flxrz Quote  Post ReplyReply Direct Link To This Post Topic: MDI Docking Panes flickering in resizing
    Posted: 24 November 2005 at 11:01am

Hello everyone:

I am developing an application based on MFC "CMDIChildWnd" classes. I have inserted a "CXTPDockingPaneManager" in every child window and some docking panes which "CFormViews" attached on them.

The problem comes when I try to resize the CMDIChildWnd dragging it with the mouse: all the controls in the CFormsViews begin flickering while the OnSize process goes on. This gives the application a horrible final aspect and a non-professional style.

Is there any way to fix this in an easy way?

Thank you very much.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 2:49am

Hello,

Add WS_CLIPCHILDREN|WS_CLIPSIBLINGDS to CMDIChildWnd, its View, Attached Form.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
flxrz View Drop Down
Newbie
Newbie


Joined: 30 October 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote flxrz Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 3:26am

Thank you for answer me so far, Oleg.

Your solution works fine with dockink panesī flickering when the user hides or shows those panes, but I am resizing the child windows. The flickering persists during the child window resize process or even during the application resize, but NOT if I move the application dragging it around the screen. I have all my docking panes attached on the view as a tabbed window.

In Toolkitīs 9.7 samples this also happens, but due to the small amount of controls in the CFormView is almost imperceptible.

Thanks.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2005 at 5:23am

Hi

2005-11-27_052246_ChildFrame.zip

See sample.

Main code is:

int CProperttiesView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
 if (CFormView::OnCreate(lpCreateStruct) == -1)
  return -1;
 
 ModifyStyle(0, WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
 
 return 0;
}

void CProperttiesView::OnInitialUpdate()
{
 CFormView::OnInitialUpdate();
 
 SetScaleToFitSize(CSize(1, 1)); 
}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
flxrz View Drop Down
Newbie
Newbie


Joined: 30 October 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote flxrz Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 11:23am

Thank you again, Oleg. The sample attached has been very useful for me.

Almost everything is now OK in my "CFormViews", but the MFCīs Group Boxes and Month Calendar Controls still flicker. Can you help me with this or itīs a MFC bug?

Best regards.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 1:47pm

 

yes, it is not MFC, but OS thing.

 

can suggest you try

subclass group boxes to CXTResizeGroupBox class.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 1:59pm

just checked - flicker anyway :(

To avoid some drawing (not flicker problems) also in properties of Group Box check "Tranparent" property...

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2005 at 2:06pm

 

CXTResizeGroupBox class helped.

2005-11-28_140619_ChildFrame.zip

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
flxrz View Drop Down
Newbie
Newbie


Joined: 30 October 2005
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote flxrz Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2005 at 5:20am

Thank you, Oleg.

Your are giving me great support with this subject. "CXTResizeGroupBox" works terrific and almost everything is now OK, but the problem with CMonthCalendarCtrl, CSliderCtrl and some others persist. All them flicker (it would better say they flash!!!) yet and itīs kind of annoying.

Regards and congratulations for this forumīs support.

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.156 seconds.