SEC_TREECLASS::Expand
BOOLSEC_TREECLASS::Expand(HTREEITEMhtiExpand, UINTnCode, BOOLbRedraw, BOOLbForceExpand)
Expands or collapses the list of child items, if any, associated with the given parent item.
Defined in: trcore.inl
Return Value
Nonzero if successful; otherwise 0.
Parameters
htiExpand
Handle of the tree item being expanded.
nCode
A flag indicating the type of action to be taken. This flag can be 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.
bRedraw
Flag indicating whether to redraw the item; default is TRUE.
bForceExpand
Ignore any optimizations and force an expand action
Comments
Call this function to expand or collapse the child items, if any, associated with the given parent item.