- ControlButtonContentInfo info;
-
- if ( GetWXPeer()->HasFlag( wxBORDER_NONE ) )
- {
- wxMacCreateBitmapButton( &info, bmp, kControlContentIconRef );
- if ( info.contentType != kControlNoContent )
- SetData( kControlIconPart, kControlIconContentTag, info );
- }
- else
- {
- wxMacCreateBitmapButton( &info, bmp );
- if ( info.contentType != kControlNoContent )
- SetData( kControlButtonPart, kControlBevelButtonContentTag, info );
- }
-
- wxMacReleaseBitmapButton( &info );