X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13b34d3f2be575d59747a5926000be7b28a45dc..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/msw/statusbar.cpp diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index 6f58f7cb00..a63dcc4fb6 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -374,7 +374,7 @@ int wxStatusBar::MSWGetBorderWidth() const /* static */ const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics() { - static MSWMetrics s_metrics = { 0 }; + static MSWMetrics s_metrics = { 0, 0 }; if ( !s_metrics.textMargin ) { // Grip size should be self explanatory (the only problem with it is @@ -502,9 +502,6 @@ void wxStatusBar::DoMoveWindow(int x, int y, int width, int height) ); } - // adjust fields widths to the new size - MSWUpdateFieldsWidths(); - // we have to trigger wxSizeEvent if there are children window in status // bar because GetFieldRect returned incorrect (not updated) values up to // here, which almost certainly resulted in incorrectly redrawn statusbar @@ -595,15 +592,21 @@ wxStatusBar::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) } #endif - bool needsEllipsization = HasFlag(wxSTB_ELLIPSIZE_START) || - HasFlag(wxSTB_ELLIPSIZE_MIDDLE) || - HasFlag(wxSTB_ELLIPSIZE_END); - if ( nMsg == WM_SIZE && needsEllipsization ) + if ( nMsg == WM_SIZE ) { - for (int i=0; i