]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
allow changing the page from keyboard in property sheet like controls even when the...
[wxWidgets.git] / src / common / toplvcmn.cpp
index a6c9133dbdbf11b649a7d883bb339c4920df0620..60376d3ebcb84e678230fd2e034a8efdb00a881e 100644 (file)
@@ -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);
+}