work w/o bitmap button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,6 +86,7 @@ void wxMenuItem::UpdateItemBitmap()
|
|||||||
|
|
||||||
if ( m_bitmap.Ok() )
|
if ( m_bitmap.Ok() )
|
||||||
{
|
{
|
||||||
|
#if wxUSE_BMPBUTTON
|
||||||
ControlButtonContentInfo info ;
|
ControlButtonContentInfo info ;
|
||||||
wxMacCreateBitmapButton( &info , m_bitmap ) ;
|
wxMacCreateBitmapButton( &info , m_bitmap ) ;
|
||||||
if ( info.contentType != kControlNoContent )
|
if ( info.contentType != kControlNoContent )
|
||||||
@@ -95,7 +96,7 @@ void wxMenuItem::UpdateItemBitmap()
|
|||||||
kMenuIconRefType , (Handle) info.u.iconRef ) ;
|
kMenuIconRefType , (Handle) info.u.iconRef ) ;
|
||||||
}
|
}
|
||||||
wxMacReleaseBitmapButton( &info ) ;
|
wxMacReleaseBitmapButton( &info ) ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user