⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_18403.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:18403 发表者:jack 发表日期:2002-10-20 16:29:14
<br>主题:LIST控件中怎么在特定的项上实现像EDIT框那样的效果,即用户可编辑?
<br>内容:EditLabel()和etEditControl()成员函数的怎么个意思?
<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 AntivVirus 回复日期:2002-10-20 16:55:04
<br>内容:CListCtrl::EditLabel<BR><BR><BR>CEdit* EditLabel( int nItem );<BR><BR>Return Value<BR><BR>If successful, a pointer to the CEdit object that is used to edit the item text; otherwise NULL.<BR><BR>Parameters<BR><BR>nItem<BR><BR>Index of the list view item that is to be edited.<BR><BR>Remarks<BR><BR>A list view control that has the LVS_EDITLABELS window style enables a user to edit item labels in place. The user begins editing by clicking the label of an item that has the focus.<BR><BR>Use this function to begin in-place editing of the specified list view item’s text.<BR><BR>Example<BR><BR>// The pointer to my list view control.<BR>extern CListCtrl* pmyListCtrl;<BR><BR>// Make sure the focus is set to the list view control.<BR>pmyListCtrl-&gt;SetFocus();<BR><BR>// Show the edit control on the label of the first<BR>// item in the list view control.<BR>CEdit* pmyEdit = pmyListCtrl-&gt;EditLabel(1);<BR>ASSERT(pmyEdit != NULL);<BR><BR>****************************************************************<BR><BR>那样的效果需要Create一个Edit框来做
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:PLB 回复日期:2002-10-20 19:08:42
<br>内容:自己动态做一个CEdit类对象,在需要显示的地方让他显示,不许要的时候让他隐藏也可以<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 + -