From: Václav Slavík Date: Mon, 15 Oct 2001 22:45:37 +0000 (+0000) Subject: compilation fix for wxMGL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe9fea7ec75fe38527702b8ae7926a5609828b79 compilation fix for wxMGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/univ/statusbr.h b/include/wx/univ/statusbr.h index 804029fbc1..5c97873fe8 100644 --- a/include/wx/univ/statusbr.h +++ b/include/wx/univ/statusbr.h @@ -16,6 +16,8 @@ #pragma interface "univstatusbr.h" #endif +#include "wx/univ/inpcons.h" + // ---------------------------------------------------------------------------- // wxStatusBar: a window near the bottom of the frame used for status info // ---------------------------------------------------------------------------- diff --git a/src/univ/statusbr.cpp b/src/univ/statusbr.cpp index 679e664bce..62f7257458 100644 --- a/src/univ/statusbr.cpp +++ b/src/univ/statusbr.cpp @@ -30,6 +30,8 @@ #if wxUSE_STATUSBAR #ifndef WX_PRECOMP + #include "wx/settings.h" + #include "wx/dcclient.h" #endif #include "wx/statusbr.h" @@ -83,9 +85,6 @@ bool wxStatusBarUniv::Create(wxWindow *parent, wxRect wxStatusBarUniv::GetTotalFieldRect(wxCoord *borderBetweenFields) { - // determine the space we have for the fields - wxSize sizeBorders = m_renderer->GetStatusBarBorders(borderBetweenFields); - wxRect rect = GetClientRect(); // no, don't do this - the borders are meant to be inside this rect