September 23rd, 1999, 10:48 AM
how can one implement a Combobox showing a treeview instead of the listview window?
harald
harald
|
Click to See Complete Forum and Search --> : Any way for Combobox Dropdown Window showing a treeview ? September 23rd, 1999, 10:48 AM how can one implement a Combobox showing a treeview instead of the listview window? harald Anthony Mai September 23rd, 1999, 02:11 PM You can either ask Microsoft to add something like CTreeComboBox to MFC and wait until they ship VC++ 7.0 (which is tough), or you can do your own easily without a combobox. All you need, is put an edit box, a small dropdown triangle, and a tree control at the same position. Hide the tree box and show the edit box initially. When the user clicks on the trangle, hide the edit box and show the tree box. When the user selects a tree item, hide the treebox and show the edit box again. The rest is associating the edit box content with the tree control selection, which is easy. I hate fat programs as much as I hate being fat myself. I am lean and mean and so is my program. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |