// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "mdi.h"
#endif
+#include "wx/wxprec.h"
+
#include "wx/mdi.h"
#include "wx/menu.h"
#include "wx/settings.h"
wxFrame::SetMenuBar( menu_bar ) ;
}
+void wxMDIParentFrame::GetRectForTopLevelChildren(int *x, int *y, int *w, int *h)
+{
+ if(x)
+ *x = 0;
+ if(y)
+ *y = 0;
+ wxDisplaySize(w,h);
+}
+
void wxMDIParentFrame::MacActivate(long timestamp, bool activating)
{
wxLogDebug(wxT("MDI PARENT=%p MacActivate(0x%08lx,%s)"),this,timestamp,activating?wxT("ACTIV"):wxT("deact"));
if ( show )
{
// TODO: check for other children
- Move(-10000, -10000);
+ if(!GetToolBar())
+ Move(-10000, -10000);
}
if ( !wxFrame::Show(show) )