]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bmpbuttn.h
wxBitmapButton doesn't need own DoGetBestSize, wxControl's one works (fixes sizing...
[wxWidgets.git] / include / wx / bmpbuttn.h
index c874c9d9dabed5ef9b775c8b66b00d5e78099cc6..54a38c432248daccb7db01d3e98db7b11a94d8e6 100644 (file)
@@ -67,7 +67,7 @@ public:
 
 protected:
     // function called when any of the bitmaps changes
-    virtual void OnSetBitmap() { }
+    virtual void OnSetBitmap() { InvalidateBestSize(); }
 
     // the bitmaps for various states
     wxBitmap m_bmpNormal,