X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..9c8e10ad37434a8801f2a5c3d4675cfddd61635d:/src/msw/bmpbuttn.cpp diff --git a/src/msw/bmpbuttn.cpp b/src/msw/bmpbuttn.cpp index 7039eb149e..b05541c635 100644 --- a/src/msw/bmpbuttn.cpp +++ b/src/msw/bmpbuttn.cpp @@ -27,6 +27,7 @@ #endif #include "wx/msw/private.h" +#include "wx/msw/dc.h" // for wxDCTemp #include "wx/msw/uxtheme.h" @@ -175,7 +176,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, msStyle, 0, 0, 0, 0, GetWinHwnd(parent), - (HMENU)m_windowId.GetValue(), + (HMENU)wxUIntToPtr(m_windowId.GetValue()), wxGetInstance(), NULL );