Editing item programmatically
Posted
by Zafir Anjum
on August 6th, 1998
Normally an edit is initiated when a user clicks on an item that already has the focus. Suppose, you want to start the edit when the user clicks a button, here is the code to start the edit.
m_listctrl.SetFocus(); m_listctrl.EditLabel(nItem);You should remember to SetFocus() if the listview control does not already have the focus. Of course, for this to work, the listview control should have the LVM_EDITLABEL style.

Comments
Edit not initialized or empty rows
Posted by Legacy on 07/08/1999 12:00amOriginally posted by: Nicola Genchi
Hello!I found very interesting and useful the articles about this matter. But the code I have been downloading doesn't let me edit the subitems of the rows not initialized. If one of the subitems has already value it works otherwise I don't have the possibility to enter value in the subitems! I would be grteaful of any help!!
Thanks Nicola
Replyselected item
Posted by Legacy on 05/21/1999 12:00amOriginally posted by: Liping Gao
How do you let program know you selected item of list? I can not find any clue from all of your articls here? But this is critical. Without knowing selected item you can do nothing?
Thanks,
Replyhow do I finish editing when press ENTER?
Posted by Legacy on 05/14/1999 12:00amOriginally posted by: xyjiang
Reply