惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

博客园 - 泡泡

设置文件属性 VC - 泡泡 - 博客园 程序小注意 - 泡泡 - 博客园 有关进程创建,与子进程的路径指定 dll 有关CComboBox - 泡泡 - 博客园 有关线程 ADO 存储过程 - 泡泡 - 博客园 VC执行存储过程 - 泡泡 - 博客园 读写文件操作 - 泡泡 - 博客园 Access数据库SQL操作 ComboBox控件-转 CTime 常用字符转换 字符串分解 音频 Inno SetUp 有关音频编码 窗口透明、半透明 Windows Media
控件LIST
泡泡 · 2006-06-11 · via 博客园 - 泡泡

获取ListCtrl的行信息。(list)

CString strItem;
 POSITION pos;
 pos = m_ListIndex.GetFirstSelectedItemPosition();
 // 得到项目索引
 int IndexInFieldList = m_ListIndex.GetNextSelectedItem(pos); 
 strItem = m_ListIndex.GetItemText(IndexInFieldList,0);
//
删除所有的行
m_ListIndex.DeleteAllItems();

ListBox:
获取选中行信息:
CString strItem,strType;

 int cur = m_ListIndex.GetCurSel();
 m_ListIndex.GetText(cur,strItem);

 if(strItem.IsEmpty()) return;
删除行:
int c = m_ListIndex.GetCount();
  for (int j=0;j<c;j++)
  {
   m_ListIndex.DeleteString(j);
  }