关于TListBox控件的多选问题(在线等待)

zearbo 2003-08-21 09:20:07
使用TListBox控件做多选容器,请问,在将MultiSelect 设置为true后,怎么样才能知道,那些项是我选中的,就像Tlistview控件一样,有个item->selected 可以判断啊?
...全文
90 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
whp320 2003-08-21
  • 打赏
  • 举报
回复
if(ListBox1->Checked)
{
}
halibut 2003-08-21
  • 打赏
  • 举报
回复
int index;
for(index=0;index<ListBox1->Items->Count;index++)
{
if(ListBox1->Selected[index])
{
...
}
else
{
...
}
}

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧