From: Vadim Zeitlin Date: Thu, 26 Jul 2007 14:25:07 +0000 (+0000) Subject: compilation fix after last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d5b49cfb51c5bed477dec3cb413ef40e1612b3e?ds=inline compilation fix after last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 2b4eb28cd8..99c79bcaa3 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -448,7 +448,7 @@ void wxControlWithItems::MSWAllocStorage(const wxArrayStringsAdapter& items, totalTextLength += items[i].length(); } - if ( SendMessage(MSWGetItemsHWND(), wm, numItems, + if ( SendMessage((HWND)MSWGetItemsHWND(), wm, numItems, (LPARAM)totalTextLength*sizeof(wxChar)) == LB_ERRSPACE ) { wxLogLastError(wxT("SendMessage(XX_INITSTORAGE)")); @@ -459,7 +459,8 @@ int wxControlWithItems::MSWInsertOrAppendItem(unsigned pos, const wxString& item, unsigned wm) { - LRESULT n = SendMessage(MSWGetItemsHWND(), wm, pos, (LPARAM)item.wx_str()); + LRESULT n = SendMessage((HWND)MSWGetItemsHWND(), wm, pos, + (LPARAM)item.wx_str()); if ( n == CB_ERR || n == CB_ERRSPACE ) { wxLogLastError(wxT("SendMessage(XX_ADD/INSERTSTRING)"));