From: Vadim Zeitlin Date: Sun, 27 Feb 2005 15:43:58 +0000 (+0000) Subject: refresh bitmap when it's label changes, this is necessary for wxMSW and maybe wxGTK... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c46b98daaf2f50e0ee9fe3effeb266b0fd02f2b0?hp=ed1288c1d53072d6db0285d2bd5dca3d72fc8c3e refresh bitmap when it's label changes, this is necessary for wxMSW and maybe wxGTK and shouldn't hurt much for other ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/bmpbuttn.h b/include/wx/bmpbuttn.h index 1bc0a1239b..442369808c 100644 --- a/include/wx/bmpbuttn.h +++ b/include/wx/bmpbuttn.h @@ -67,7 +67,7 @@ public: protected: // function called when any of the bitmaps changes - virtual void OnSetBitmap() { InvalidateBestSize(); } + virtual void OnSetBitmap() { InvalidateBestSize(); Refresh(); } // the bitmaps for various states wxBitmap m_bmpNormal,