X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e47fd5a1b5eecdd668fcbe96b8a64c39af1c196..a9a2485d6464928fcf1012e573f4b3b734238300:/include/wx/ownerdrw.h?ds=sidebyside diff --git a/include/wx/ownerdrw.h b/include/wx/ownerdrw.h index 55ec29893f..50e85b4a64 100644 --- a/include/wx/ownerdrw.h +++ b/include/wx/ownerdrw.h @@ -29,7 +29,7 @@ // element or one unchangeable bitmap otherwise. // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxOwnerDrawn +class WXDLLIMPEXP_CORE wxOwnerDrawn { public: // ctor & dtor @@ -61,9 +61,14 @@ public: m_bmpUnchecked = bmpUnchecked; m_bOwnerDrawn = true; } - void SetBitmap(const wxBitmap& bmpChecked) - { m_bmpChecked = bmpChecked; - m_bOwnerDrawn = true; } + void SetBitmap(const wxBitmap& bmp, bool bChecked = true) + { + if ( bChecked ) + m_bmpChecked = bmp; + else + m_bmpUnchecked = bmp; + m_bOwnerDrawn = true; + } void SetDisabledBitmap( const wxBitmap& bmpDisabled ) { m_bmpDisabled = bmpDisabled; @@ -164,7 +169,6 @@ private: m_bmpDisabled; size_t m_nHeight, // font height - m_nMinHeight, // minimum height, as determined by user's system settings m_nMarginWidth; // space occupied by bitmap to the left of the item };