X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76784eecd960198bc54429a6e16d5bd7af458fce..bd73ba41f93a040ecf9c18040d7f788992d0a6ec:/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;