+#ifdef __WIN16__
+ virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
+ virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+#endif // __WIN16__
+
+protected:
+ void Init() { m_isIcon = TRUE; m_image.icon = NULL; }
+ void Free();
+
+ // TRUE if icon/bitmap is valid
+ bool ImageIsOk() const;
+
+ // we can have either an icon or a bitmap
+ bool m_isIcon;
+ union
+ {
+ wxIcon *icon;
+ wxBitmap *bitmap;
+ } m_image;
+
+ virtual void DoSetSize(int x, int y,
+ int width, int height,
+ int sizeFlags = wxSIZE_AUTO);