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:
@@ -98,8 +98,11 @@ void wxFrame::PositionMenuBar()
|
||||
wxCoord heightMbar = m_frameMenuBar->GetSize().y;
|
||||
|
||||
wxCoord heightTbar = 0;
|
||||
if (m_frameToolBar)
|
||||
|
||||
#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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user