X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4304b42f1a1a586e96c645cb47d1cd3c98e3dec6..a22be3e1fcf362850fe33d52d55518ad68b98d02:/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); }