added "bool checked" parameter to SetBitmap() too, for consisttency with GetBitmap()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-23 12:07:42 +00:00
parent 2026b433b9
commit 4d273001f4
2 changed files with 13 additions and 5 deletions

View File

@@ -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;