-void wxBitmapButton::DoSetBitmap(const wxBitmap& bitmap, State which)
-{
- wxBitmapButtonBase::DoSetBitmap(bitmap, which);
-
- // we don't support any other states currently
- if ( which == State_Normal )
- {
- m_peer->SetBitmap( bitmap );
- }
- else if ( which == State_Pressed )
- {
- wxBitmapButtonImpl* bi = dynamic_cast<wxBitmapButtonImpl*> (m_peer);
- if ( bi )
- bi->SetPressedBitmap(bitmap);
- }
-}
-