X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c86f1403c3737c07d58676a203f4707942684a01..9390a202a8b9d67d393faf3e1323885e6a27c127:/include/wx/ownerdrw.h diff --git a/include/wx/ownerdrw.h b/include/wx/ownerdrw.h index 050d8d9986..5a742f3dda 100644 --- a/include/wx/ownerdrw.h +++ b/include/wx/ownerdrw.h @@ -16,8 +16,9 @@ #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 // ---------------------------------------------------------------------------- // wxOwnerDrawn - a mix-in base class, derive from it to implement owner-drawn @@ -59,8 +60,8 @@ public: 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 @@ -123,7 +124,7 @@ private: 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) @@ -132,4 +133,5 @@ private: m_nMarginWidth; // space occupied by bitmap to the left of the item }; -#endif //_OWNERDRW_H \ No newline at end of file +#endif + // _OWNERDRW_H