#endif
#include "wx/msw/private.h"
+#include "wx/msw/dc.h" // for wxDCTemp
#include "wx/msw/uxtheme.h"
msStyle,
0, 0, 0, 0,
GetWinHwnd(parent),
- (HMENU)m_windowId,
+ (HMENU)wxUIntToPtr(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());
}