CListBox中有多行信息,用鼠标选中一行。用一个button单击删除所选的那条信息。
在此键中应加什么函数,我用了FindStringExact // The pointer to my list box.extern LPCTSTR lpszmyString;/////此行是添加在button键中马???// Delete all items that exactly match the specified string.
int nIndex = 0;
while ((nIndex=m_listbox.FindStringExact(nIndex, lpszmyString)) != LB_ERR)
{
m_listbox.DeleteString( nIndex );
}大家有什么好办法快教我
在此键中应加什么函数,我用了FindStringExact // The pointer to my list box.extern LPCTSTR lpszmyString;/////此行是添加在button键中马???// Delete all items that exactly match the specified string.
int nIndex = 0;
while ((nIndex=m_listbox.FindStringExact(nIndex, lpszmyString)) != LB_ERR)
{
m_listbox.DeleteString( nIndex );
}大家有什么好办法快教我
解决方案 »
- ListCtrl 行列选择变化时发出的消息和item内容改变后发出的消息是一样的???都是LVN_ITEMCHANGED???
- GetWindowText 获取中文标题问题。
- 如何在WinCE下实现xml文件的读写? 求解~~
- SetCapture只对所在程序的窗口有效?
- 关于位图按钮问题,大家来帮忙看看~~
- 紧急求教:如何用vc++编写 电子图章 代码
- 网络报表源代码出售(VC)
- 100分!钱龙分析软件中日线历史数据(就是存放在\DAY\*****.day)的文件格式
- 用outlook express往互联网发邮件的问题!!!!
- 请帮我看一下这个链接错误
- 请问如何区分操作系统的进程和应用程序的进程
- 如何在打开对话框中加入自定义的内容,比如预览或附加的按钮
获得当前选中的
也可以CListBox::GetCurSel
不能用于multiple-selection