move default button handling code from wxControlContainer to wxTLW (patch 1524441)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,6 +55,8 @@ wxTopLevelWindowBase::wxTopLevelWindowBase()
|
||||
{
|
||||
// Unlike windows, top level windows are created hidden by default.
|
||||
m_isShown = false;
|
||||
m_winDefault = NULL;
|
||||
m_winTmpDefault = NULL;
|
||||
}
|
||||
|
||||
wxTopLevelWindowBase::~wxTopLevelWindowBase()
|
||||
@@ -393,3 +395,14 @@ void wxTopLevelWindowBase::RequestUserAttention(int WXUNUSED(flags))
|
||||
// it's probably better than do nothing, isn't it?
|
||||
Raise();
|
||||
}
|
||||
|
||||
void wxTopLevelWindowBase::RemoveChild(wxWindowBase *child)
|
||||
{
|
||||
if ( child == m_winDefault )
|
||||
m_winDefault = NULL;
|
||||
|
||||
if ( child == m_winTmpDefault )
|
||||
m_winTmpDefault = NULL;
|
||||
|
||||
wxWindow::RemoveChild(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user