1.ListBox控件 信息添加
ListBox->Items->Add("所需添加内容");
ListBox->ItemIndex;//获取当前选定项目的索引
ListBox1->Items->Strings[ListBox1->ItemIndex] //获取当前选定项目的内容
博客介绍了ListBox控件的信息添加及内容获取操作。通过ListBox->Items->Add可添加所需内容,利用ListBox->ItemIndex能获取当前选定项目的索引,还能通过ListBox1->Items->Strings[ListBox1->ItemIndex]获取当前选定项目的内容。
1.ListBox控件 信息添加
ListBox->Items->Add("所需添加内容");
ListBox->ItemIndex;//获取当前选定项目的索引
ListBox1->Items->Strings[ListBox1->ItemIndex] //获取当前选定项目的内容

被折叠的 条评论
为什么被折叠?
