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.
CListBox::InsertString
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int InsertString( int nIndex, const char FAR* lpItem );
 
  Parameter   Description
 
  <nIndex>    Specifies the zero-based index of the position to insert the
              string. If this parameter is -1, the string is added to the
              end of the list.
 
  <lpItem>    Points to the null-terminated string that is to be
              inserted.
 
  Remarks
 
  Inserts a string into the list box. Unlike the AddString member
  function, InsertString does not cause a list with the LBS_SORT style
  to be sorted.
 
  Return Value
 
  The zero-based index of the position at which the string was inserted.
  The return value is LB_ERR if an error occurs; the return value is
  LB_ERRSPACE if insufficient space is available to store the new string.
 
  See Also
 
  CListBox::AddString, LB_INSERTSTRING
 
 
                                     -♦-