- // FIXME: workarounds for OS/2 bugs have nothing to do here (VZ)
- int width, height;
-#ifdef __WXPM__
- GetSize(&width, &height);
-#else
- GetClientSize(&width, &height);
-#endif
-
- // we cache m_widthsAbs between calls and recompute it if client
- // width has changed (or when it is initially empty)
- if ( m_widthsAbs.IsEmpty() || m_lastClientWidth != width )
- {
- // FIXME: why don't we use an OnSize(wxSizeEvent&) event handler to
- // update the cache? (FM)
-
- wxConstCast(this, wxStatusBarGeneric)->m_widthsAbs = CalculateAbsWidths(width);
-
- // remember last width for which we have recomputed the widths in pixels
- wxConstCast(this, wxStatusBarGeneric)->m_lastClientWidth = width;
- }