C++
POSITION GetFirstSelectedItemPosition() const;
Description
Gets the position of the first selected item in the view. To enumerate through the selected items, call this function to get the position and then call GetNextSelectedItem() repeatedly to get the selected item pointers.
Returns a POSITION value that can be used for iteration with GetNextSelectedItem(), or NULL if no items are selected.