troubleshooting Question

CTreeCtrl in MFC

Avatar of LarryMillsSr
LarryMillsSr asked on
System Programming
18 Comments1 Solution2131 ViewsLast Modified:
I've never used a "Tree Control"  I need a solid example of how to use it:
the following BOOLs are set:
      m_bHasButtons = TRUE;// button style
      m_bHasLines = TRUE;//has lines
      m_bLinesAtRoot = TRUE;//root lines
      m_bShowSelAlways = TRUE;//always show
      m_bSingleExpand = TRUE;//allow single expand only

In the program I want to list files(database reports) for each Heading;
Ex: Headings, Shop, Yard, Building, Motorpool, Maintenance, Construction.

Question 1) How do I show these Headings in the TreeCtrl(named: CTreeCtrl  m_cTree) and Question 2) Then be able to insert various "Reports" for each heading(different amount of reports for each heading?
Join our community to see this answer!
Unlock 1 Answer and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros