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
This commit is contained in:
parent
df530a2693
commit
7edc258ec2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user