]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/docmdi.h
made the log dialog resizeable (again?)
[wxWidgets.git] / include / wx / docmdi.h
index 5c58befd40f1cf07173a165989f17a03d1fa2761..1e3047bdd8bd77196fc900607a0151da9e3e3180 100644 (file)
@@ -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_