+ // Resize styles array
+ if (m_statusStyles)
+ {
+ int *oldStyles = m_statusStyles;
+ m_statusStyles = new int[number];
+ int i, max = wxMin(number, m_nFields);
+
+ // copy old styles
+ for (i = 0; i < max; ++i)
+ m_statusStyles[i] = oldStyles[i];
+
+ // initialize new styles to wxSB_NORMAL
+ for (i = max; i < number; ++i)
+ m_statusStyles[i] = wxSB_NORMAL;
+
+ // free old styles
+ delete [] oldStyles;
+ }
+
+