switching to IconRefs for menu bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,12 +87,12 @@ void wxMenuItem::UpdateItemBitmap()
|
|||||||
if ( m_bitmap.Ok() )
|
if ( m_bitmap.Ok() )
|
||||||
{
|
{
|
||||||
ControlButtonContentInfo info ;
|
ControlButtonContentInfo info ;
|
||||||
wxMacCreateBitmapButton( &info , m_bitmap , kControlContentCIconHandle ) ;
|
wxMacCreateBitmapButton( &info , m_bitmap ) ;
|
||||||
if ( info.contentType != kControlNoContent )
|
if ( info.contentType != kControlNoContent )
|
||||||
{
|
{
|
||||||
if ( info.contentType == kControlContentCIconHandle )
|
if ( info.contentType == kControlContentIconRef )
|
||||||
SetMenuItemIconHandle( mhandle , index ,
|
SetMenuItemIconHandle( mhandle , index ,
|
||||||
kMenuColorIconType , (Handle) info.u.cIconHandle ) ;
|
kMenuIconRefType , (Handle) info.u.iconRef ) ;
|
||||||
}
|
}
|
||||||
wxMacReleaseBitmapButton( &info ) ;
|
wxMacReleaseBitmapButton( &info ) ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user