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:
@@ -237,8 +237,12 @@ bool wxMDIParentFrame::Show( bool show )
|
|||||||
if ( show )
|
if ( show )
|
||||||
{
|
{
|
||||||
// TODO: check for other children
|
// TODO: check for other children
|
||||||
if(!GetToolBar())
|
if ( !GetToolBar() )
|
||||||
Move(-10000, -10000);
|
{
|
||||||
|
// 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) )
|
if ( !wxFrame::Show(show) )
|
||||||
|
Reference in New Issue
Block a user