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::SetTopIndex
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int SetTopIndex( int nIndex );
 
  Parameter   Description
 
  <nIndex>    Specifies the zero-based index of the list-box item.
 
  Remarks
 
  Ensures that a particular list-box item is visible.
 
  The system scrolls the list box until either the list-box item appears
  at the top of the list box or the maximum scroll range has been
  reached.
 
  Return Value
 
  LB_ERR if an error occurs.
 
  See Also
 
  CListBox::GetTopIndex, LB_SETTOPINDEX
 
 
                                     -♦-