implement images support for wxButton under XP and later

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-15 04:23:54 +00:00
parent 81cb7b5a98
commit 233f10bf15
5 changed files with 359 additions and 16 deletions

View File

@@ -44,4 +44,16 @@ wxWindow *wxButtonBase::SetDefault()
return tlw->SetDefaultItem(this);
}
void wxButtonBase::SetBitmapPosition(wxDirection dir)
{
wxASSERT_MSG( !(dir & ~wxDIRECTION_MASK), "non-direction flag used" );
wxASSERT_MSG( !!(dir & wxLEFT) +
!!(dir & wxRIGHT) +
!!(dir & wxTOP) +
!!(dir & wxBOTTOM) == 1,
"exactly one direction flag must be set" );
DoSetBitmapPosition(dir);
}
#endif // wxUSE_BUTTON