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:
parent
a236aa2058
commit
0d5b49cfb5
@ -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)"));
|
||||
|
Loading…
Reference in New Issue
Block a user