X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2df7be7f2cca699a02ee0c9ce69de9bfe6b0922f..f001799009630c46bc87aff5a84dbd2523005505:/include/wx/docmdi.h diff --git a/include/wx/docmdi.h b/include/wx/docmdi.h index 5c58befd40..1e3047bdd8 100644 --- a/include/wx/docmdi.h +++ b/include/wx/docmdi.h @@ -18,7 +18,7 @@ #include "wx/defs.h" -#if wxUSE_MDI_ARCHITECTURE +#if wxUSE_MDI_ARCHITECTURE && wxUSE_DOC_VIEW_ARCHITECTURE #include "wx/docview.h" #include "wx/mdi.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; @@ -85,6 +86,6 @@ DECLARE_EVENT_TABLE() #endif // wxUSE_MDI_ARCHITECTURE - + #endif // _WX_DOCMDI_H_