compilation fix after last commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-07-26 14:25:07 +00:00
parent a236aa2058
commit 0d5b49cfb5

View File

@ -448,7 +448,7 @@ void wxControlWithItems::MSWAllocStorage(const wxArrayStringsAdapter& items,
totalTextLength += items[i].length(); totalTextLength += items[i].length();
} }
if ( SendMessage(MSWGetItemsHWND(), wm, numItems, if ( SendMessage((HWND)MSWGetItemsHWND(), wm, numItems,
(LPARAM)totalTextLength*sizeof(wxChar)) == LB_ERRSPACE ) (LPARAM)totalTextLength*sizeof(wxChar)) == LB_ERRSPACE )
{ {
wxLogLastError(wxT("SendMessage(XX_INITSTORAGE)")); wxLogLastError(wxT("SendMessage(XX_INITSTORAGE)"));
@ -459,7 +459,8 @@ int wxControlWithItems::MSWInsertOrAppendItem(unsigned pos,
const wxString& item, const wxString& item,
unsigned wm) 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 ) if ( n == CB_ERR || n == CB_ERRSPACE )
{ {
wxLogLastError(wxT("SendMessage(XX_ADD/INSERTSTRING)")); wxLogLastError(wxT("SendMessage(XX_ADD/INSERTSTRING)"));