Re: parse TListView selected items
2006-03-03 02:08:43 AM
cppbuilder110
"poojo hackma" <poojo.com/mail>wrote in message
Quote
Could someone show me how to step through a TListView and
read the Caption property of each item when multiple items are selected?
TListItem *Selected = ListView1->Selected;
while( Selected )
{
AnsiString s = Selected->Caption;
//...
Selected = ListView1->GetNextItem(Selected, sdAll, TItemStates() <<
isSelected);
}
Quote
How do I ensure the first selected item starts at the top of the
TListView?
The Selected property always returns the top-most selected item.
Gambit