]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
determine the slider event type more precisely (i.e. generate LINE/PAGE UP/DOWN and...
[wxWidgets.git] / src / msw / listbox.cpp
index e8bfb9b75c9b80fb7f74a476e8fc4e0d86863f17..71cc9a44a0223c35ef20209f752970d4eced0a91 100644 (file)
@@ -354,7 +354,7 @@ int wxListBox::FindString(const wxString& s, bool bCase) const
     if (bCase)
        return wxItemContainerImmutable::FindString( s, bCase );
 
-    int pos = ListBox_FindStringExact(GetHwnd(), (WPARAM)-1, s);
+    int pos = ListBox_FindStringExact(GetHwnd(), -1, s);
     if (pos == LB_ERR)
         return wxNOT_FOUND;
     else