Print Page | Close Window

Opening a pane while in a modal dialog

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=21574
Printed Date: 28 April 2024 at 10:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Opening a pane while in a modal dialog
Posted By: trunkmonkey
Subject: Opening a pane while in a modal dialog
Date Posted: 03 April 2013 at 10:18am
I've got a situation here that I didn't see already on the forum.

So, from within a modal dialog, I'm sending a message to the main frame to open a pane which WAS open but is currently closed. If the pane was previously in a docked state, it opens and shows itself, no problem.

But if the pane had been floating when it was open, it now opens up IN FRONT of the modal dialog. If I try to move the pane at all while the dialog is still open, it crashes the program. 

I don't know if it's coming to the front because of focus getting set or what, but is there any way to ensure that it launches behind the modal dialog?

Here's the code I'm using to open the pane. At this point, pPane and pFrameWnd are valid.


if (pFrameWnd)
{
pPane->Attach(pFrameWnd);
pPane->SetTitle(CString(String(IDS_MY_PANE_TITLE)));
GetProgramFrame()->GetDockingPaneManager()->ShowPane( MY_PANE_ID );
}



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