/*
GetNextItem example
This example demonstrates how to retrieve all selected items in a ListView component and add the Caption of the selected ListItems to a ListBox component.
*/ 
void __fastcall TForm1::Button1Click(TObject *Sender)
{
   TItemStates selected = TItemStates() << isSelected;
   TListItem *Item = ListView1->Selected;
   while (Item){
      ListBox1->Items->Add(Item->Caption);
      Item = ListView1->GetNextItem(Item, sdAll, selected);
   }
} 
