// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "frame.h"
#endif
+#include "wx/wxprec.h"
+
#include "wx/frame.h"
#include "wx/statusbr.h"
#include "wx/toolbar.h"
IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxTopLevelWindow)
#endif
-#define WX_MAC_STATUSBAR_HEIGHT 15
+#define WX_MAC_STATUSBAR_HEIGHT 18
// ----------------------------------------------------------------------------
// creation/destruction
// ----------------------------------------------------------------------------
#endif // wxUSE_TOOLBAR
}
+bool wxFrame::MacIsChildOfClientArea( const wxWindow* child ) const
+{
+#if wxUSE_STATUSBAR
+ if ( child == GetStatusBar() )
+ return false ;
+#endif // wxUSE_STATUSBAR
+
+#if wxUSE_TOOLBAR
+ if ( child == GetToolBar() )
+ return false ;
+#endif // wxUSE_TOOLBAR
+
+ return wxFrameBase::MacIsChildOfClientArea( child ) ;
+}
+
void wxFrame::DoSetClientSize(int clientwidth, int clientheight)
{
int currentclientwidth , currentclientheight ;