]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
added missing check for wxUSE_JOYSTICK
[wxWidgets.git] / src / msw / frame.cpp
index 9a699cfebc7b61649e10447055705ef20e0700cb..7f82254fad492fc597f10c58720b03c71e4f5c07 100644 (file)
@@ -799,6 +799,13 @@ void wxFrame::OnActivate(wxActivateEvent& event)
     }
 }
 
+void wxFrame::RemoveChild( wxWindowBase *child )
+{
+    if ( child == m_winLastFocused )
+        m_winLastFocused = NULL;
+    wxFrameBase::RemoveChild(child);
+}
+
 // ----------------------------------------------------------------------------
 // tool/status bar stuff
 // ----------------------------------------------------------------------------