Print Page | Close Window

MDI Docking Panes flickering in resizing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3271
Printed Date: 23 November 2024 at 8:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Docking Panes flickering in resizing
Posted By: flxrz
Subject: MDI Docking Panes flickering in resizing
Date 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.




Replies:
Posted By: Oleg
Date 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


Posted By: flxrz
Date 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.



Posted By: Oleg
Date Posted: 27 November 2005 at 5:23am

Hi

http://forum.codejock.com/uploads/oleg/2005-11-27_052246_ChildFrame.zip - 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


Posted By: flxrz
Date 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.



Posted By: Oleg
Date 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


Posted By: Oleg
Date 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


Posted By: Oleg
Date Posted: 28 November 2005 at 2:06pm

 

CXTResizeGroupBox class helped.

http://forum.codejock.com/uploads/oleg/2005-11-28_140619_ChildFrame.zip - 2005-11-28_140619_ChildFrame.zip



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: flxrz
Date 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.




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