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:
Włodzimierz Skiba
2005-09-27 17:05:26 +00:00
parent 853dcc57c6
commit 11e62fe658
34 changed files with 290 additions and 414 deletions

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: combobox.cpp
// Name: src/gtk/combobox.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
@@ -527,7 +527,7 @@ void wxComboBox::SetString(int n, const wxString &text)
InvalidateBestSize();
}
int wxComboBox::FindString( const wxString &item ) const
int wxComboBox::FindString( const wxString &item, bool bCase ) const
{
wxCHECK_MSG( m_widget != NULL, wxNOT_FOUND, wxT("invalid combobox") );
@@ -544,7 +544,7 @@ int wxComboBox::FindString( const wxString &item ) const
#else
wxString str( label->label );
#endif
if (item == str)
if (item.IsSameAs( str , bCase ) )
return count;
count++;