#if wxUSE_STATUSBAR
/* status bar */
- if (m_frameStatusBar) (*height) -= wxSTATUS_HEIGHT;
+ if (m_frameStatusBar && m_frameStatusBar->IsShown()) (*height) -= wxSTATUS_HEIGHT;
#endif // wxUSE_STATUSBAR
#if wxUSE_TOOLBAR
/* tool bar */
- if (m_frameToolBar)
+ if (m_frameToolBar && m_frameToolBar->IsShown())
{
if (m_toolBarDetached)
{
#if wxUSE_STATUSBAR
/* status bar */
- if (m_frameStatusBar) height += wxSTATUS_HEIGHT;
+ if (m_frameStatusBar && m_frameStatusBar->IsShown()) height += wxSTATUS_HEIGHT;
#endif
#if wxUSE_TOOLBAR
/* tool bar */
- if (m_frameToolBar)
+ if (m_frameToolBar && m_frameToolBar->IsShown())
{
if (m_toolBarDetached)
{
}
#if wxUSE_TOOLBAR
- if ((m_frameToolBar) &&
+ if ((m_frameToolBar) && m_frameToolBar->IsShown() &&
(m_frameToolBar->m_widget->parent == m_mainWidget))
{
int xx = m_miniEdge;
}
#if wxUSE_STATUSBAR
- if (m_frameStatusBar)
+ if (m_frameStatusBar && m_frameStatusBar->IsShown())
{
int xx = 0 + m_miniEdge;
int yy = m_height - wxSTATUS_HEIGHT - m_miniEdge - client_area_y_offset;