]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix after last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Jul 2007 14:25:07 +0000 (14:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Jul 2007 14:25:07 +0000 (14:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/control.cpp

index 2b4eb28cd8b636c9e983a9b871f3482bbc03a5ed..99c79bcaa3c0b00d5656068b2042f16d396482fe 100644 (file)
@@ -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)"));