X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31528cd3cac75558beef4bce0ba21fd182a808ab..6e807169c4b63b29b42c36ae15141a31adb29204:/include/wx/motif/statbmp.h diff --git a/include/wx/motif/statbmp.h b/include/wx/motif/statbmp.h index 63b5476cac..b6674c046b 100644 --- a/include/wx/motif/statbmp.h +++ b/include/wx/motif/statbmp.h @@ -17,6 +17,7 @@ #endif #include "wx/control.h" +#include "wx/icon.h" WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr; @@ -54,6 +55,19 @@ public: wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; } + // for compatibility with wxMSW + const wxIcon& GetIcon() const + { + // don't use wxDynamicCast, icons and bitmaps are really the same thing + return (const wxIcon &)m_messageBitmap; + } + + // for compatibility with wxMSW + void SetIcon(const wxIcon& icon) + { + SetBitmap( icon ); + } + // overriden base class virtuals virtual bool AcceptsFocus() const { return FALSE; }