Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Opening a pane while in a modal dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Opening a pane while in a modal dialog

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


Joined: 18 February 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote trunkmonkey Quote  Post ReplyReply Direct Link To This Post Topic: Opening a pane while in a modal dialog
    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 );
}
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.