]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/statusbr.cpp
workaroung for handling problems because groupboxes are not included in the parent...
[wxWidgets.git] / src / univ / statusbr.cpp
index 679e664bceb43ccd078cff1f1e1832fdc7a54a76..e3c7127f12ed6c9bfb18c881ed323231aa903559 100644 (file)
@@ -30,6 +30,8 @@
 #if wxUSE_STATUSBAR
 
 #ifndef WX_PRECOMP
 #if wxUSE_STATUSBAR
 
 #ifndef WX_PRECOMP
+    #include "wx/settings.h"
+    #include "wx/dcclient.h"
 #endif
 
 #include "wx/statusbr.h"
 #endif
 
 #include "wx/statusbr.h"
@@ -83,12 +85,11 @@ bool wxStatusBarUniv::Create(wxWindow *parent,
 
 wxRect wxStatusBarUniv::GetTotalFieldRect(wxCoord *borderBetweenFields)
 {
 
 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
     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
     //rect.Deflate(sizeBorders.x, sizeBorders.y);
 
     // recalc the field widths if needed