[C/CPP] MFC 트리컨트롤, Expand / Collapse

MFC Tree Control: How to expand/collapse a branch?
Q: How to expand/collapse a branch?
A: If you want to expand or collapse one only item use
Code:

 

If you want to expand or collapse an item and all of its children use something like this:
Code:

 

Last edited by Andreas Masur; July 25th, 2005 at 04:57 PM.
출처 – http://forums.codeguru.com/showthread.php?231228-MFC-Tree-Control-How-to-expand-collapse-a-branch