在列表控件中编辑项目 [英] Edit item in List Control

查看:82
本文介绍了在列表控件中编辑项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在Visual C ++中的CListControl中编辑单元格文本.如何单击单元格项目并编辑其文本.

Timkee

Hi
I want to edit the cell text in CListControl in Visual C++. How to click on a cell item and edit its text.

Timkee

推荐答案

可以通过将LVS_EDITLABELS样式添加到listview控件来允许编辑标签(第一列).但是,据我所知,其余列的就地编辑不会由控件自动处理,而是需要人工干预,即您必须编写代码.
You can allow editing of the label (first column) by adding the LVS_EDITLABELS style to the listview control. However, as far as I am aware, inplace editing of the remaining columns is not automatically handled by the control and requires manual intervention, i.e. you have to write the code.


这篇关于在列表控件中编辑项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆