Visual Studio 2015 - ListBox

xiaoxiao2021-02-28  100

// 添加一行 listBox.AddString(_T("test")); // 当前选中的行 int selectIndex = logList.GetCurSel(); // 获取某一行 CString s; logList.GetText(selectIndex, s); // 清空表格 logList.ResetContent(); // 删除一行 logList.DeleteString(selectIndex); // 在指定的位置插入一行 logList.InsertString(0, _T("insert")); // 获得列表的总行数 logList.GetCount(); // 从指定位置查找字符串并选中所在列 logList.SelectString(0, _T("lker")); // 从指定位置查找字符串并返回行号 int pos = logList.FindString(0, _T("lker"))
转载请注明原文地址: https://www.6miu.com/read-84003.html

最新回复(0)