启用对列表控制项的编辑 [英] enabling edit for list control item
本文介绍了启用对列表控制项的编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为lParticipant的列表控件.
然后,我做类似lParticipant.InsertItem(participantIndex,"New Number");的操作.单击名为添加"的按钮时.
插入项目后如何立即要求该项目进入编辑模式?
我希望用户能够编辑该项目.
该lParticipant已设置为报告样式.
I have a list control called lParticipant.
Then I do something like lParticipant.InsertItem(participantIndex,"New Number"); when a button called ''Add'' is clicked.
How can I ask this item to be in edit mode immediately after I insert the item?
I want the user to be able to edit the item.
This lParticipant has been set to report style.
推荐答案
对MSDN中控件的简单回顾将始终为您提供所有成员函数的详细信息,例如 ListView_EditLabel宏 [
A simple review of the control in MSDN will always give you details of all member functions, such as the ListView_EditLabel Macro[^].
我使用了lParticipant .EditLabel(participantIndex);
那没用.
PartitionIndex是lParticipant.InsertItem(participantIndex,新数字")中使用的索引;
我在这里缺少什么吗?
I used lParticipant.EditLabel(participantIndex);
That didnt work.
participantIndex is the index used in lParticipant.InsertItem(participantIndex,"New Number");
is there something I am missing here??
这篇关于启用对列表控制项的编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文