X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..46b8d15a67701e1a2594b0eca820f166645e1b31:/include/wx/ownerdrw.h diff --git a/include/wx/ownerdrw.h b/include/wx/ownerdrw.h index be2ae25d58..50e85b4a64 100644 --- a/include/wx/ownerdrw.h +++ b/include/wx/ownerdrw.h @@ -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;