![]() |
Problem when reloading docked panes (ReportCtrl) |
Post Reply ![]() |
Author | |
timc4662 ![]() Newbie ![]() Joined: 07 April 2009 Location: United Kingdom Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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:
![]() ![]() ![]() |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
timc4662 ![]() Newbie ![]() Joined: 07 April 2009 Location: United Kingdom Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |