CTreeCtrl::Expand
BOOLExpand(HTREEITEMhItem**,UINTnCode);**
Return Value
Nonzero if successful; otherwise 0.
Parameters
hItem
Handle of the tree item being expanded.
nCode
A flag indicating the type of action to be taken. This flag can have one of the following values:
TVE_COLLAPSE Collapses the list.
TVE_COLLAPSERESET Collapses the list and removes the child items.
TVE_EXPAND Expands the list.
TVE_TOGGLE Collapses the list if it is currently expanded or expands it if it is currently collapsed.
Remarks
Call this function to expand or collapse the list of child items, if any, associated with the given parent item.
Example
See the example for CTreeCtrl::EnsureVisible.
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::EnsureVisible