X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..ce668f297b03143bc15014a37c12e610c49c6e6b:/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;