X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b597caaca8ade60aa8ef750c94df803bbd8ba422..a467ac36a568c8ed1c43604fd7f1f2b2d3b6efc2:/include/wx/docmdi.h?ds=sidebyside diff --git a/include/wx/docmdi.h b/include/wx/docmdi.h index 1fd76e1abe..1e3047bdd8 100644 --- a/include/wx/docmdi.h +++ b/include/wx/docmdi.h @@ -16,6 +16,10 @@ #pragma interface "docmdi.h" #endif +#include "wx/defs.h" + +#if wxUSE_MDI_ARCHITECTURE && wxUSE_DOC_VIEW_ARCHITECTURE + #include "wx/docview.h" #include "wx/mdi.h" @@ -71,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; @@ -79,5 +84,8 @@ DECLARE_EVENT_TABLE() }; +#endif + // wxUSE_MDI_ARCHITECTURE + #endif // _WX_DOCMDI_H_