Print Page | Close Window

Problem when reloading docked panes (ReportCtrl)

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=13944
Printed Date: 22 July 2025 at 10:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem when reloading docked panes (ReportCtrl)
Posted By: timc4662
Subject: Problem when reloading docked panes (ReportCtrl)
Date Posted: 07 April 2009 at 5:32am
Hello, I have searched for the answer for this and cannot find it on the forum. It seems to be another CLIP_SIBLINGS|CHILDREN issue, but I believe that I have them in the correct place.
 
I have lots of report ctrls within docking panels. All is OK the first time it is loaded, however when I dock the panels and restart the application I get a weird effect. The main view appears to be drawn over the whole application but you can see the actual panels hidden behind it. Any ideas? When I put a breakpoint on the OnSize in the main view I get nothing when resizing the application which is strange.
 
Here are some images showing the problem:
 
 
 



Replies:
Posted By: Oleg
Date Posted: 08 April 2009 at 12:57am
Hi,
 
Yes you need clip styles for your MinaFrame and View
 
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs
 if( !CFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
 return TRUE;
}
 
...


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


Posted By: timc4662
Date Posted: 08 April 2009 at 4:27am

Hi Oleg,

Thanks for the reply.
 
I thought that you would say that and I have tried it but am still having problems. When I resize the application, the tabs of the docked windows are visible behind the messed up view. Note that this only happens when I dock one pane on top of another. Interestingly, when I click the tab of the hidden docked pane (i.e. to make it come to the front) the application redraws fine. When I close the app and restart, the same problem.
 
I can try and post an example if this will help?
 
Tim.



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