/////////////////////////////////////////////////////////////////////////////
-// Name: src/generic/tabmdi.cpp
+// Name: src/aui/tabmdi.cpp
// Purpose: Generic MDI (Multiple Document Interface) classes
// Author: Hans Van Leemputten
// Modified by: Benjamin I. Williams / Kirix Corporation
#pragma hdrstop
#endif
+#if wxUSE_AUI
#if wxUSE_MDI
#include "wx/aui/tabmdi.h"
}
}
-void wxTabMDIParentFrame::SetMenuBar(wxMenuBar *pMenuBar)
+void wxTabMDIParentFrame::SetMenuBar(wxMenuBar* pMenuBar)
{
// Remove the Window menu from the old menu bar
RemoveWindowMenu(GetMenuBar());
SetMenuBar(m_pMyMenuBar);
// Make sure we know our menu bar is in use
- m_pMyMenuBar = NULL;
+ //m_pMyMenuBar = NULL;
}
else
{
{
if (pMenuBar && m_pWindowMenu)
{
- int pos = pMenuBar->FindMenu(wxGetStockLabel(wxID_HELP,false));
+ int pos = pMenuBar->FindMenu(wxGetStockLabel(wxID_HELP,wxSTOCK_NOFLAGS));
if (pos == wxNOT_FOUND)
pMenuBar->Append(m_pWindowMenu, _("&Window"));
else
wxWindow::Show(show);
}
-void wxTabMDIChildFrame::DoSetSize(int x, int y, int width, int height, int WXUNUSED(sizeFlags))
+void wxTabMDIChildFrame::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
m_mdi_newrect = wxRect(x, y, width, height);
+#ifdef __WXGTK__
+ wxPanel::DoSetSize(x,y,width, height, sizeFlags);
+#else
+ wxUnusedVar(sizeFlags);
+#endif
}
void wxTabMDIChildFrame::DoMoveWindow(int x, int y, int width, int height)
((wxTabMDIChildFrame *)GetPage(pos))->ApplyMDIChildFrameRect();
}
+#endif //wxUSE_AUI
#endif // wxUSE_MDI