X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..f68586e51b20dccee3fd5645aeaca7cc8ff298c2:/include/wx/motif/statbmp.h diff --git a/include/wx/motif/statbmp.h b/include/wx/motif/statbmp.h index 24688066d9..b6674c046b 100644 --- a/include/wx/motif/statbmp.h +++ b/include/wx/motif/statbmp.h @@ -6,7 +6,7 @@ // Created: 17/09/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_STATBMP_H_ @@ -17,6 +17,7 @@ #endif #include "wx/control.h" +#include "wx/icon.h" WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr; @@ -47,11 +48,26 @@ public: virtual void SetBitmap(const wxBitmap& bitmap); - virtual void Command(wxCommandEvent& WXUNUSED(event)) {}; - virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; + virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) + { + return FALSE; + } 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; }