Allow calling wxAuiMDIChildFrame::Show()

Even if it doesn't do anything, allow calling this method even after
creating the child frame for consistency with the normal MDI
implementation.
This commit is contained in:
Vadim Zeitlin
2018-05-13 00:10:41 +02:00
parent 24e06054fc
commit 2e5554019a

View File

@@ -700,14 +700,6 @@ void wxAuiMDIChildFrame::Init()
bool wxAuiMDIChildFrame::Show(bool show)
{
// wxAuiMDIChildFrame uses m_activateOnCreate only to decide whether to
// activate the frame when it is created. After Create() is called,
// m_activateOnCreate will never be read again. Therefore, calling this
// function after Create() is pointless and you probably want to call
// Activate() instead.
wxCHECK_MSG( !GetHandle(), false,
wxS("Show() has no effect after Create(). Do you mean Activate()?") );
m_activateOnCreate = show;
// do nothing