Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView, ListView and Forms

Status
Not open for further replies.

williamu

Programmer
Apr 8, 2002
494
GB
Hi,

I want to write an application that contains a TreeView (TV) to the left and a ListView (LV) on the right. When the App first loads there will be nothing in the LV. In the TV the user can open the root node to display it's contents. Now what I want to do is when the user clicks a node it displays in the LV the contents of the node's subnodes (elements).

However, each of the main nodes will have different attributes to show, so what would be the best thing to do to achieve this?

Also, If the user double clicks on a node instead of the LV being displayed a Form is shown to allow the User to enter the details of the new item. And when an item is added then this is reflected in the TV. Again, since all nodes have different attributes then the forms would be different too. So how would I go about this?

I know how I want this application to look like and how it should function but implementing it is another matter. So I'd really appreciate any help that's available. Can anyone shed some light on this or point me to a tutorial / sample?

--
Thanks

William
 
try with sample from MSDN Visual C++ 6.0
"DAOVIEW: Database Browser" it's exactly like you want...

Good luck...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top