Print Page | Close Window

Floating Pane associated with wrong Frame

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=17525
Printed Date: 25 April 2024 at 9:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Floating Pane associated with wrong Frame
Posted By: acwest
Subject: Floating Pane associated with wrong Frame
Date Posted: 04 November 2010 at 3:35pm
I recently updated my current project to use the 13.4.2 version of the toolkit instead of version 12, and now we have a problem. We have two main windows in our application, both of which are docking sites. When a pane is undocked, it normally stays visible in front of the frame it is associated with (you can't hide it behind the docking site window). As of the library upgrade, however, all floating panes seem to have this association with the application main frame window, not their docking site. Has anybody else seen this?



Replies:
Posted By: acwest
Date Posted: 11 January 2011 at 4:20pm
Has NOBODY seen anything like this happen?


Posted By: acwest
Date Posted: 11 January 2011 at 5:20pm
After some investigation, I have discovered the problem, and I think it is a bug. In CXTPDockingPaneMiniWnd::Create, there is a pair of lines:
CWnd* pParentWnd = GetDockingPaneManager()->GetSite();
if (pParentWnd->GetStyle() & WS_CHILD) pParentWnd = AfxGetMainWnd();

The problem is that the docking site is not the top level frame, and the top level frame is not the main window (There are multiple top level frames in the app)
This results in incorrect behaviour. I can probably work around it by re-writing the Create method in my subclass of CXTPDockingPaneMiniWnd, but I would prefer a more elegant solution...



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