]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
removed unused wxUSE_XXX options (patch 1759328)
[wxWidgets.git] / 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)"));