hide the MDI parent frame instead of just moving it away (why didn't I do it like this before?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
484bdc6a72
commit
4a60e3f007
@ -237,8 +237,12 @@ bool wxMDIParentFrame::Show( bool show )
|
||||
if ( show )
|
||||
{
|
||||
// TODO: check for other children
|
||||
if(!GetToolBar())
|
||||
Move(-10000, -10000);
|
||||
if ( !GetToolBar() )
|
||||
{
|
||||
// call the base class version to just update the flag but don't
|
||||
// really make the window visible
|
||||
return wxFrameBase::Show();
|
||||
}
|
||||
}
|
||||
|
||||
if ( !wxFrame::Show(show) )
|
||||
|
Loading…
Reference in New Issue
Block a user