📄 subject_37741.htm
字号:
<p>
序号:37741 发表者:YLZ 发表日期:2003-04-27 22:35:38
<br>主题:怎样得到我选择的行号(索引)?
<br>内容:在CListCtrl创建的表格中 , 怎样得到我选择的行号(索引)
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:wowow 回复日期:2003-04-28 08:37:02
<br>内容:假设m_list是你的ClistCtrl,<BR>单选:<BR>int nIndex = m_list.GetNextItem(-1, LVNI_SELECTED);<BR><BR>多选(包括单选,要include <afxtempl.h>):<BR>int nSelCount = m_list.GetSelCount();<BR>CArray<int,int> arrayListSel;<BR>arrayListSel.SetSize(nSelCount);<BR>m_list.GetSelItems(nSelCount, arrayListSel.GetData());<BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -