?? index124.htm
字號(hào):
<html>
<style type="text/css"><!--
.p9 { font-family: "宋體"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">在CListCtrl控件中多選擇項(xiàng)的刪除?</font></td></tr>
<tr><td><p>
</Br>
如何從在CListCtrl中刪除多個(gè)選擇項(xiàng)?<Br>
</Br>
按如下方法處理:如果你的在CListCtrl是m_list,to_delete是個(gè)整數(shù)數(shù)組.<Br>
i=3D0;<Br>
POSITION pos=3Dm_list.GetFirstSelectedItemPosition();<Br>
if(pos)<Br>
while(pos)<Br>
to_delete[i++]=3Dm_list.GetNextSelectedItem(pos);<Br>
然后用刪除保存在to_delete中的項(xiàng)目,用GetSelectedCount來(lái)得到已選項(xiàng)的個(gè)數(shù).<Br>
</Br>
</Br>
</p></td></tr>
</table>
</body></html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -