Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problem when reloading docked panes (ReportCtrl)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem when reloading docked panes (ReportCtrl)

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


Joined: 07 April 2009
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote timc4662 Quote  Post ReplyReply Direct Link To This Post Topic: Problem when reloading docked panes (ReportCtrl)
    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:
 
 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
timc4662 View Drop Down
Newbie
Newbie


Joined: 07 April 2009
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote timc4662 Quote  Post ReplyReply Direct Link To This Post 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.
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.047 seconds.