git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCoord heightMbar = m_frameMenuBar->GetSize().y;
wxCoord heightTbar = 0;
wxCoord heightMbar = m_frameMenuBar->GetSize().y;
wxCoord heightTbar = 0;
+
+#if wxUSE_TOOLBAR
+ if ( m_frameToolBar )
heightTbar = m_frameToolBar->GetSize().y;
heightTbar = m_frameToolBar->GetSize().y;
- m_frameMenuBar->SetSize(0,
+ m_frameMenuBar->SetSize(0,
#ifdef __WXPM__ // FIXME -- remove this, make wxOS2/Univ behave as
// the rest of the world!!!
GetClientSize().y - heightMbar - heightTbar,
#else
- (heightMbar + heightTbar),
#ifdef __WXPM__ // FIXME -- remove this, make wxOS2/Univ behave as
// the rest of the world!!!
GetClientSize().y - heightMbar - heightTbar,
#else
- (heightMbar + heightTbar),
GetClientSize().x, heightMbar);
}
}
GetClientSize().x, heightMbar);
}
}
height += m_frameStatusBar->GetSize().y;
}
#endif // wxUSE_STATUSBAR
height += m_frameStatusBar->GetSize().y;
}
#endif // wxUSE_STATUSBAR
if ( height )
return height + wxMax(0, wxFrameBase::GetMinHeight());
else
if ( height )
return height + wxMax(0, wxFrameBase::GetMinHeight());
else
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
+#endif // wxUSE_TOOLBAR
+