compilation fixes for !wxUSE_TOOLBAR

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-03-14 23:55:16 +00:00
parent 7ded318bef
commit 6a317e6188
2 changed files with 12 additions and 5 deletions

View File

@ -98,16 +98,19 @@ void wxFrame::PositionMenuBar()
wxCoord heightMbar = m_frameMenuBar->GetSize().y;
wxCoord heightTbar = 0;
if (m_frameToolBar)
heightTbar = m_frameToolBar->GetSize().y;
m_frameMenuBar->SetSize(0,
#if wxUSE_TOOLBAR
if ( m_frameToolBar )
heightTbar = m_frameToolBar->GetSize().y;
#endif // wxUSE_TOOLBAR
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),
#endif
#endif
GetClientSize().x, heightMbar);
}
}
@ -304,7 +307,7 @@ int wxFrame::GetMinHeight() const
height += m_frameStatusBar->GetSize().y;
}
#endif // wxUSE_STATUSBAR
if ( height )
return height + wxMax(0, wxFrameBase::GetMinHeight());
else

View File

@ -29,6 +29,8 @@
#pragma hdrstop
#endif
#if wxUSE_TOOLBAR
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
@ -705,3 +707,5 @@ bool wxStdToolbarInputHandler::HandleActivation(wxInputConsumer *consumer,
return TRUE;
}
#endif // wxUSE_TOOLBAR