]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/statusbr.cpp
fixed wxTaskBarIcon compilation
[wxWidgets.git] / src / univ / statusbr.cpp
index 679e664bceb43ccd078cff1f1e1832fdc7a54a76..e3c7127f12ed6c9bfb18c881ed323231aa903559 100644 (file)
@@ -30,6 +30,8 @@
 #if wxUSE_STATUSBAR
 
 #ifndef WX_PRECOMP
+    #include "wx/settings.h"
+    #include "wx/dcclient.h"
 #endif
 
 #include "wx/statusbr.h"
@@ -83,12 +85,11 @@ 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
+    // wxSize sizeBorders =
+    m_renderer->GetStatusBarBorders(borderBetweenFields);
     //rect.Deflate(sizeBorders.x, sizeBorders.y);
 
     // recalc the field widths if needed