subject_23241.htm

来自「一些关于vc的问答」· HTM 代码 · 共 24 行

HTM
24
字号
<p>
序号:23241 发表者:忧河 发表日期:2002-12-02 17:48:35
<br>主题:关于Combo Box 的一个问题?
<br>内容:对于Combo Box ,如何一次性删除其控件中的内容?<BR>是否有象CListCtrl中的DeleteAllItems()所类似的函数?
<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>回复者:Norton AntiVirus 回复日期:2002-12-02 17:50:09
<br>内容:CComboBox::ResetContent<BR>void ResetContent( );<BR><BR>Remarks<BR><BR>Removes all items from the list box and edit control of a combo box.<BR><BR>Example<BR><BR>// The pointer to my combo box.<BR>extern CComboBox* pmyComboBox;<BR><BR>// Delete all the items from the combo box.<BR>pmyComboBox-&gt;ResetContent();<BR>ASSERT(pmyComboBox-&gt;GetCount() == 0);<BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:忧河 回复日期:2002-12-02 17:54:23
<br>内容:多谢相助!^_^
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Norton AntiVirus 回复日期:2002-12-02 18:52:37
<br>内容:嘻嘻,不用客气啊!<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 + =
减小字号Ctrl + -
显示快捷键?