- const wxIcon& GetIcon() const
- { wxASSERT( m_isIcon ); return *m_image.icon; }
- const wxBitmap& GetBitmap() const
- { wxASSERT( !m_isIcon ); return *m_image.bitmap; }
-
- // overriden base class virtuals
- virtual bool AcceptsFocus() const { return FALSE; }
+ wxIcon GetIcon() const
+ { wxASSERT( m_isIcon ); return *(wxIcon *)m_image; }
+ wxBitmap GetBitmap() const
+ { wxASSERT( !m_isIcon ); return *(wxBitmap *)m_image; }