]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statusbar.cpp
revised wxString docs: don't use old style grouping of functions at the beginning...
[wxWidgets.git] / src / msw / statusbar.cpp
index 667b9d13b645c11a335fc8383501e2673e81d4a5..e2fd86ab70b53b4a48f4b206b777b51be9a5d372 100644 (file)
@@ -232,7 +232,7 @@ void wxStatusBar::UpdateFieldText(int nField)
 
     // Get field style, if any
     int style;
-    switch(m_panes[nField].nStyle)
+    switch(m_panes[nField].GetStyle())
     {
     case wxSB_RAISED:
         style = SBT_POPOUT;
@@ -338,7 +338,7 @@ wxSize wxStatusBar::DoGetBestSize() const
     for ( size_t i = 0; i < m_panes.GetCount(); ++i )
     {
         int widthField =
-            m_bSameWidthForAllPanes ? DEFAULT_FIELD_WIDTH : m_panes[i].nWidth;
+            m_bSameWidthForAllPanes ? DEFAULT_FIELD_WIDTH : m_panes[i].GetWidth();
         if ( widthField >= 0 )
         {
             width += widthField;