]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/docmdi.h
Committed a couple of IPC changes I forgot to do
[wxWidgets.git] / include / wx / docmdi.h
index 5c58befd40f1cf07173a165989f17a03d1fa2761..37b2109475b94345178239651dfc1edb0c16302f 100644 (file)
 #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
+#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 wxMDIChildFrame::Destroy(); }
  protected:
   wxDocument*       m_childDocument;
   wxView*           m_childView;
@@ -85,6 +86,6 @@ DECLARE_EVENT_TABLE()
 
 #endif
     // wxUSE_MDI_ARCHITECTURE
-    
+
 #endif
     // _WX_DOCMDI_H_