Or selected index in C++ Builder?
So far I've tried something like this:
for (int i = 0; i < AdvPolyList_Selection->ItemCount(); i++)
{
if (AdvPolyList_Selection->Items->InheritsFrom(__classid(TTextItem)))
{
TTextItem* ti;
ti = (TTextItem*)AdvPolyList_Selection->Items;
if (ti->State == TItemState() << isSelected)
{
// do something
}
}
}
Also tried:
if (ti->State.Contains(isSelected))
These are usually used with C++ Builder and sets but these don't work. So how to check if it is selected?