X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/387a3b02e02d91da6c5d4331b667d835e32c83b0..db16e5c3aae30ee4502d3e0d41eed500af365fe9:/include/wx/docmdi.h diff --git a/include/wx/docmdi.h b/include/wx/docmdi.h index 43c4d9d871..37b2109475 100644 --- a/include/wx/docmdi.h +++ b/include/wx/docmdi.h @@ -12,10 +12,14 @@ #ifndef _WX_DOCMDI_H_ #define _WX_DOCMDI_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #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" @@ -23,7 +27,7 @@ * Use this instead of wxMDIParentFrame */ -class wxDocMDIParentFrame: public wxMDIParentFrame +class WXDLLEXPORT wxDocMDIParentFrame: public wxMDIParentFrame { DECLARE_CLASS(wxDocMDIParentFrame) public: @@ -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 wxMDIChildFrame::Destroy(); } protected: wxDocument* m_childDocument; wxView* m_childView; @@ -79,5 +84,8 @@ DECLARE_EVENT_TABLE() }; +#endif + // wxUSE_MDI_ARCHITECTURE + #endif // _WX_DOCMDI_H_