|
dodo 님이 쓰신 글 :
: ListView에서 select된 row의 caption부분은 아래와 같이하면
: 읽을수 있는데 subitem은 어떻게 읽어야 하나요?
:
: indexes = ListView1->Selected->Index;
: ShowMessage(ListView1->Items->Item[indexes]->Caption);
안녕하세요.
TListItem *pListItem;
pListItem = ListView1->Selected;
if(pListItem != NULL) //선택된 아이템이 있으면...
{
AnsiString strCaption, strItem1;
strCaption = pListItem->Caption;
strItem1 = pListItem->SubItems->Strings[0];
...
}
|