From: Vadim Zeitlin Date: Wed, 7 Mar 2007 23:28:41 +0000 (+0000) Subject: avoid flicker when setting the text which is the same as the current status bar pane... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/823b6635f6be00ef24a858b9766c601d9227b920 avoid flicker when setting the text which is the same as the current status bar pane value (patch 1669140) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index c17ff4cc57..52d64680ee 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -189,6 +189,12 @@ void wxStatusBar95::SetStatusText(const wxString& strText, int nField) wxCHECK_RET( (nField >= 0) && (nField < m_nFields), _T("invalid statusbar field index") ); + if ( strText == GetStatusText(nField) ) + { + // don't call StatusBar_SetText() to avoid flicker + return; + } + // Get field style, if any int style; if (m_statusStyles)