Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CComboBox::FindStringExact
CComboBox                                   Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int FindStringExact( int nIndexStart, LPCSTR lpszFind ) const;
 
  Parameter     Description
 
  <nIndexStart> Specifies the zero-based index of the item before the
                first item to be searched. When the search reaches the
                bottom of the list box, it continues from the top of the
                list box back to the item specified by <nIndexStart>. If
                <nIndexStart> is -1, the entire list box is searched from
                the beginning.
 
  <lpszFind>    Points to the null-terminated string to search for. This
                string can contain a complete filename, including the
                extension. The search is not case sensitive, so this
                string can contain any combination of uppercase and
                lowercase letters.
 
  Remarks
 
  Call the FindStringExact member function to find the first list-box
  string (in a combo box) that matches the string specified in
  <lpszFind>.
 
  If the combo box was created with an owner-drawn style but without the
  CBS_HASSTRINGS style, FindStringExact attempts to match the doubleword
  value against the value of <lpszFind>.
 
  Return Value
 
  The zero-based index of the matching item, or CB_ERR if the search was
  unsuccessful.
 
  See Also
 
  CComboBox::FindString, CB_FINDSTRINGEXACT
 
 
                                     -♦-