X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4765d335f603c29f1fd300288ff1d40a118fcf0e..aac65598a1137a8a9d4d31155ba83833500aea4d:/include/wx/mac/statbmp.h diff --git a/include/wx/mac/statbmp.h b/include/wx/mac/statbmp.h index 48cad8933a..a457c967f9 100644 --- a/include/wx/mac/statbmp.h +++ b/include/wx/mac/statbmp.h @@ -52,6 +52,20 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl inline 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 + // in wxGTK + return (const wxIcon &)m_messageBitmap; + } + + // for compatibility with wxMSW + void SetIcon(const wxIcon& icon) + { + SetBitmap( (const wxBitmap&) icon ); + } + // overriden base class virtuals virtual bool AcceptsFocus() const { return FALSE; } wxSize DoGetBestSize() const ;