Print Page | Close Window

Problems CDialog <-> CXTPDockingpanes

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=1151
Printed Date: 11 December 2024 at 9:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems CDialog <-> CXTPDockingpanes
Posted By: Wolfgang
Subject: Problems CDialog <-> CXTPDockingpanes
Date Posted: 07 September 2004 at 7:59am

Ok, once again me.

Following problem accurs, I add to a SDI Application 3 Dockingpanes (Added on the Bottom, not tabbed) In one DockingPane i insert only a CStatic Control. in the other two windows I insert CDialog based Objects. additional I set:

m_paneManager.LockSplitters(true);

m_paneManager.UseSplitterTracker(false);

m_paneManager.SetThemedFloatingFrames(false);

In LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) i use:

if (wParam == XTP_DPN_ACTION) {

XTP_DOCKINGPANE_ACTION* pAction=(XTP_DOCKINGPANE_ACTION*)lParam;

pAction->bCancel=TRUE;

return FALSE;

}

Which surpress the possibility of the user to tear of the Dockingpane.

Now if i try to tear off the dockingpane with Dialogs, i get an assertion errormessage if i close the Application afterwards. The error accurs in:

BOOL PASCAL CWnd::WalkPreTranslateTree(HWND hWndStop, MSG* pMsg)

{

ASSERT(hWndStop == NULL || ::IsWindow(hWndStop));

where hWndStop!=NULL.

It seems that the Dockingmanager wants to access the Dialog after Destroy of this Window? It seems like a Bug in the DockingPanes to me..

But maybe somebody found a way round?

thanks

Wolfgang




Replies:
Posted By: Oleg
Date Posted: 10 September 2004 at 2:28am

No. It is something in your code.

Where you create and destory dialog?

 

try to call m_wndDialog.DestroyWindow() in

CMainFrame::OnDestroy before base class call.



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



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