wxItemContainerImmutable::FindString unified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -348,8 +348,12 @@ void wxListBox::DoSetItems(const wxArrayString& choices, void** clientData)
|
||||
InvalidateBestSize();
|
||||
}
|
||||
|
||||
int wxListBox::FindString(const wxString& s) const
|
||||
int wxListBox::FindString(const wxString& s, bool bCase) const
|
||||
{
|
||||
// back to base class search for not native search type
|
||||
if (bCase)
|
||||
return wxItemContainerImmutable::FindString( s, bCase );
|
||||
|
||||
int pos = ListBox_FindStringExact(GetHwnd(), (WPARAM)-1, s);
|
||||
if (pos == LB_ERR)
|
||||
return wxNOT_FOUND;
|
||||
|
Reference in New Issue
Block a user