如何获得List Box中所有项?

 int Index = 0;   //索引号
 Index = ListBox1.GetTopIndex();   //得到最顶部索引号
 int n = ListBox1.GetCount();       //得到总的项数
 for(;Index < n;Index++)
 { 
  ListBox1.GetText(Index,temp);   //保存当前项

。。。
 } 

你可能感兴趣的:(如何获得List Box中所有项?)