#include "wx/control.h"
#include "wx/icon.h"
+#include "wx/bitmap.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
virtual ~wxStaticBitmap() { Free(); }
- void SetIcon(const wxIcon& icon) { SetImage(icon); }
- void SetBitmap(const wxBitmap& bitmap) { SetImage(bitmap); }
+ void SetIcon(const wxIcon& icon) { SetImage(&icon); }
+ void SetBitmap(const wxBitmap& bitmap) { SetImage(&bitmap); }
// assert failure is provoked by an attempt to get an icon from bitmap or
// vice versa
// IMPLEMENTATION
#ifdef __WIN16__
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
- virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
#endif // __WIN16__
+ virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
protected:
virtual wxSize DoGetBestSize() const;
// TRUE if icon/bitmap is valid
bool ImageIsOk() const;
- void SetImage(const wxGDIImage& image);
+ void SetImage(const wxGDIImage* image);
// we can have either an icon or a bitmap
bool m_isIcon;