]> git.saurik.com Git - wxWidgets.git/commitdiff
If the "partial" argument is true, you're probably meant to set the
authorOve Kaaven <ovek@arcticnet.no>
Wed, 19 Jul 2000 08:56:40 +0000 (08:56 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Wed, 19 Jul 2000 08:56:40 +0000 (08:56 +0000)
LVFI_PARTIAL flag, not the LVFI_STRING flag again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 2c4f6642de585d112df02b0b84b49a46219a2322..acb319062b9a0a156d994b6a29c79b6d2388b2b7 100644 (file)
@@ -1039,7 +1039,7 @@ long wxListCtrl::FindItem(long start, const wxString& str, bool partial)
 
     findInfo.flags = LVFI_STRING;
     if ( partial )
-        findInfo.flags |= LVFI_STRING;
+        findInfo.flags |= LVFI_PARTIAL;
     findInfo.psz = WXSTRINGCAST str;
 
     return ListView_FindItem(GetHwnd(), (int) start, & findInfo);