From 7edc258ec2e3bb1260ee4aec9a189e3de90eb535 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 19 Jul 2000 08:56:40 +0000 Subject: [PATCH] If the "partial" argument is true, you're probably meant to set the 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 2c4f6642de..acb319062b 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -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);