DynaControl::SetCollapsed

Description

Sets the collapsed state of the branches from top to bottom in the control.

Syntax

bool SetCollapsed( const vector<byte> & vn, bool bOnlyTopLevelIsBranch = true, bool bExpandParents = false )

Parameters

vn
[input] containing 1(0) for each branch that needs to be collapsed(expanded) from top to bottom in proper sequence
bOnlyTopLevelIsBranch
when true, states of only consecutive top level branches are updated,
otherwise states of all branches of all levels from top to bottom are updated.
bExpandParents
when true would expand all parent branches of an expanded branch automatically

Return

returns the number of branches.

Examples

Remark

See Also

header to Include

Control.h