Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problems CDialog <-> CXTPDockingpanes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems CDialog <-> CXTPDockingpanes

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


Joined: 01 December 2003
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wolfgang Quote  Post ReplyReply Direct Link To This Post Topic: Problems CDialog <-> CXTPDockingpanes
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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.



Edited by oleg
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.141 seconds.