how to add editboxes in a listview
how do i add an editbox in a listview?
[Edited by - 31337noob on October 13, 2004 12:47:20 AM]
You mean you want to click on a listview item, and have an editbox appear? You could just have a hidden box, and have it appear at the appropriate location, when a click occurs.
Ryan
Ryan
You can also create it dynamically during runtime.
Obtain the item rect and create an edit or combo or whatever with the child-style (WS_CHILD) set and put it there.
Prepare to handle all kind of odd features like cancel editing on Escape and more. You might want to disable the listview during editing an item and re-enable it when you're done.
Obtain the item rect and create an edit or combo or whatever with the child-style (WS_CHILD) set and put it there.
Prepare to handle all kind of odd features like cancel editing on Escape and more. You might want to disable the listview during editing an item and re-enable it when you're done.
Quote:Original post by Empirical
Unless he means a dropdown-combobox?
no not a combobox, i want a editbox.
everyone else knows what i am talking about.
Quote:Original post by 31337noobQuote:Original post by Empirical
Unless he means a dropdown-combobox?
no not a combobox, i want a editbox.
everyone else knows what i am talking about.
It was only a suggestion. A combobox consists of a list box and an edit box like functionality.
Quote:Original post by 31337noobeveryone else knows what i am talking about.A common misconception around here.
That assumption wont get you very far I'm afraid.
You could always try giving the control the LVS_EDITLABELS style when you create it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement