+
+ if ( m_buttonBitmap.Ok() )
+ {
+ wxBitmapRefData * bmap = (wxBitmapRefData*) ( m_buttonBitmap.GetRefData()) ;
+ if ( bmap->m_bitmapType == kMacBitmapTypePict ) {
+ info.contentType = kControlContentPictHandle ;
+ info.u.picture = MAC_WXHMETAFILE(bmap->m_hPict) ;
+ }
+ else if ( bmap->m_bitmapType == kMacBitmapTypeGrafWorld )
+ {
+ if ( m_buttonBitmap.GetMask() )
+ {
+ info.contentType = kControlContentCIconHandle ;
+ info.u.cIconHandle = wxMacCreateCIcon( MAC_WXHBITMAP(bmap->m_hBitmap) , MAC_WXHBITMAP(m_buttonBitmap.GetMask()->GetMaskBitmap()) ,
+ 8 , 16 ) ;
+ }
+ else
+ {
+ info.contentType = kControlContentCIconHandle ;
+ info.u.cIconHandle = wxMacCreateCIcon( MAC_WXHBITMAP(bmap->m_hBitmap) , NULL ,
+ 8 , 16 ) ;
+ }
+ }
+ else if ( bmap->m_bitmapType == kMacBitmapTypeIcon )
+ {
+ info.contentType = kControlContentCIconHandle ;
+ info.u.cIconHandle = MAC_WXHICON( bmap->m_hIcon ) ;
+ }
+
+
+ ::SetControlData( (ControlHandle) m_macControl , kControlButtonPart , kControlBevelButtonContentTag , sizeof(info) , (char*) &info ) ;
+ }