CListBox::GetSelItems
Visual Studio 2010
Fills a buffer with an array of integers that specifies the item numbers of selected items in a multiple-selection list box.
int GetSelItems( int nMaxItems, LPINT rgIndex ) const;