#include "wx/app.h"
#include "wx/utils.h"
#include "wx/dialog.h"
- #include "wx/statusbr.h"
+ #if wxUSE_STATUSBAR
+ #include "wx/statusbr.h"
+ #endif
#include "wx/settings.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/mdi.h"
#include "wx/msw/private.h"
-#if wxUSE_NATIVE_STATUSBAR
+#if wxUSE_STATUSBAR && wxUSE_NATIVE_STATUSBAR
#include "wx/msw/statbr95.h"
#endif
+#if wxUSE_TOOLBAR
+ #include "wx/toolbar.h"
+#endif // wxUSE_TOOLBAR
+
#include <string.h>
// ---------------------------------------------------------------------------
extern wxWindowList wxModelessWindows; // from dialog.cpp
extern wxMenu *wxCurrentPopupMenu;
-extern wxChar wxMDIFrameClassName[];
-extern wxChar wxMDIChildFrameClassName[];
+extern const wxChar *wxMDIFrameClassName;
+extern const wxChar *wxMDIChildFrameClassName;
extern wxWindow *wxWndHook; // from window.cpp
extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
// wxWin macros
// ---------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame)
IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame)
IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow)
-#endif // USE_SHARED_LIBRARY
BEGIN_EVENT_TABLE(wxMDIParentFrame, wxFrame)
EVT_SIZE(wxMDIParentFrame::OnSize)
wxMDIParentFrame::~wxMDIParentFrame()
{
DestroyChildren();
+ // already delete by DestroyChildren()
+ m_frameToolBar = NULL;
::DestroyMenu((HMENU)m_windowMenu);
m_windowMenu = 0;