msStyle,
0, 0, 0, 0,
GetWinHwnd(parent),
- (HMENU)m_windowId,
+ (HMENU)m_windowId.GetValue(),
wxGetInstance(),
NULL
);
void wxBitmapButton::SetBitmapLabel(const wxBitmap& bitmap)
{
#if wxUSE_IMAGE
- if ( !HasFlag(wxBU_AUTODRAW) && !m_disabledSetByUser )
+ if ( !HasFlag(wxBU_AUTODRAW) && !m_disabledSetByUser && bitmap.IsOk() )
{
m_bmpDisabled = wxBitmap(bitmap.ConvertToImage().ConvertToGreyscale());
}