获取listBox里所有行数 GetCount(); 设置某行的选中状态 SetSel(index,true);第一个参数是行号,第二个参数是否选中 转载于:https://www.cnblogs.com/wudizhang/p/7813581.html