#pragma interface "ownerdrw.h"
#endif
-typedef wxColour wxColor;
-typedef unsigned int size_t;
+// No, don't do this: BC++ 5 complains that size_t already been defined.
+// typedef unsigned int size_t;
+#include <stddef.h>
// ----------------------------------------------------------------------------
// wxOwnerDrawn - a mix-in base class, derive from it to implement owner-drawn
m_bmpUnchecked = bmpUnchecked;
m_bOwnerDrawn = TRUE; }
- inline wxBitmap& GetBitmap(bool bChecked = TRUE) const
- { return (wxBitmap &)(bChecked ? m_bmpChecked : m_bmpUnchecked); }
+ inline const wxBitmap& GetBitmap(bool bChecked = TRUE) const
+ { return (bChecked ? m_bmpChecked : m_bmpUnchecked); }
// the height of the menu checkmark (or bitmap) is determined by the font
// for the current item, but the width should be always the same (for the
m_bOwnerDrawn; // true if something is non standard
wxFont m_font; // font to use for drawing
- wxColor m_colText, // color ----"---"---"----
+ wxColour m_colText, // color ----"---"---"----
m_colBack; // background color
wxBitmap m_bmpChecked, // bitmap to put near the item
m_bmpUnchecked; // (checked is used also for 'uncheckable' items)
m_nMarginWidth; // space occupied by bitmap to the left of the item
};
-#endif //_OWNERDRW_H
\ No newline at end of file
+#endif
+ // _OWNERDRW_H