mitchell042997
asked on
CTreeView
How do I set up the style for my TreeCtrl in a CTreeView? I had MFC automatically generate a CTreeVIew for me, and I access the tree control using GetTreeCtrl(), but how do I set up the Tree's settings?
For example, I am wanting to have my tree control with the lines and the pluses besides the full nodes like the Windows Explorer. Thanks!
For example, I am wanting to have my tree control with the lines and the pluses besides the full nodes like the Windows Explorer. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Something like this:
CTreeCtrl treeCtrl = this->GetTreeCtrl();
treeCtrl.ModifyStyle(0, TVS_HASLINES, SWP_SHOWWINDOW);
CTreeCtrl treeCtrl = this->GetTreeCtrl();
treeCtrl.ModifyStyle(0, TVS_HASLINES, SWP_SHOWWINDOW);
ASKER
Thank you for your time!
ASKER