how to add editboxes in a listview

Started by
7 comments, last by Paradigm Shifter 19 years, 6 months ago
how do i add an editbox in a listview? [Edited by - 31337noob on October 13, 2004 12:47:20 AM]
Advertisement
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
--Visit the Game Programming Wiki!
Unless he means a dropdown-combobox?
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.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

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.
ListView_EditLabel
Quote:Original post by 31337noob
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.


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.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms
You could always try giving the control the LVS_EDITLABELS style when you create it.
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

This topic is closed to new replies.

Advertisement