// 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
// ----------------------------------------------------------------------------
void wxFrame::PositionStatusBar()
{
- if (m_frameStatusBar )
+ if (m_frameStatusBar && m_frameStatusBar->IsShown() )
{
int w, h;
GetClientSize(&w, &h);
wxTopLevelWindow::DoGetClientSize( x , y ) ;
#if wxUSE_STATUSBAR
- if ( GetStatusBar() && y )
+ if ( GetStatusBar() && GetStatusBar()->IsShown() && y )
{
if ( y) *y -= WX_MAC_STATUSBAR_HEIGHT;
}
GetSize( &cw , &ch ) ;
- if ( GetStatusBar() )
+ if ( GetStatusBar() && GetStatusBar()->IsShown())
{
int statusX, statusY;
GetStatusBar()->GetClientSize(&statusX, &statusY);