X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76784eecd960198bc54429a6e16d5bd7af458fce..72594e90b2da8c167ba63b89b2c168c57a19cab4:/include/wx/docmdi.h diff --git a/include/wx/docmdi.h b/include/wx/docmdi.h index 0216cacdd7..1e3047bdd8 100644 --- a/include/wx/docmdi.h +++ b/include/wx/docmdi.h @@ -75,6 +75,7 @@ class WXDLLEXPORT wxDocMDIChildFrame: public wxMDIChildFrame inline wxView *GetView(void) const { return m_childView; } inline void SetDocument(wxDocument *doc) { m_childDocument = doc; } inline void SetView(wxView *view) { m_childView = view; } + bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); } protected: wxDocument* m_childDocument; wxView* m_childView;