X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce0e1aacbc0d79a06a570d598327dff1cfe38fb9..18fa735d20b4c66db72b51d60b82a2b3f2cda763:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index c799cf3479..e8bfb9b75c 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "listbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -352,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;