X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4304b42f1a1a586e96c645cb47d1cd3c98e3dec6..aac65598a1137a8a9d4d31155ba83833500aea4d:/include/wx/ownerdrw.h diff --git a/include/wx/ownerdrw.h b/include/wx/ownerdrw.h index ae9cde808a..a9a54e7997 100644 --- a/include/wx/ownerdrw.h +++ b/include/wx/ownerdrw.h @@ -63,6 +63,10 @@ public: m_bmpUnchecked = bmpUnchecked; m_bOwnerDrawn = TRUE; } + void SetBitmap(const wxBitmap& bmpChecked) + { m_bmpChecked = bmpChecked; + m_bOwnerDrawn = TRUE; } + const wxBitmap& GetBitmap(bool bChecked = TRUE) const { return (bChecked ? m_bmpChecked : m_bmpUnchecked); }