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