CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Any way for Combobox Dropdown Window showing a treeview ?

    how can one implement a Combobox showing a treeview instead of the listview window?

    harald


  2. #2
    Join Date
    Jun 1999
    Location
    San Diego, CA
    Posts
    600

    Re: Any way for Combobox Dropdown Window showing a treeview ?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured