]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bmpbuttn.h
added support for saving grey and grey-red PNG images (patch 985447)
[wxWidgets.git] / include / wx / bmpbuttn.h
index c874c9d9dabed5ef9b775c8b66b00d5e78099cc6..1bc0a1239ba05fb5315a9efc0de985d9ccbb44cb 100644 (file)
@@ -19,7 +19,7 @@
 #include "wx/bitmap.h"
 #include "wx/button.h"
 
-WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
+extern WXDLLEXPORT_DATA(const wxChar*) wxButtonNameStr;
 
 // ----------------------------------------------------------------------------
 // wxBitmapButton: a button which shows bitmaps instead of the usual string.
@@ -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,