Problems CDialog <-> CXTPDockingpanes |
Post Reply |
Author | |
Wolfgang
Newbie Joined: 01 December 2003 Status: Offline Points: 36 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |