GridListControl::SetCollapsed
Description
Sets the collapsed state of the branches from top to bottom in the control.
Sets the collapsed state of given row
Syntax
bool SetCollapsed( const vector<byte> & vn, bool bOnlyTopLevelIsBranch = true )
bool SetCollapsed( int nRow, bool bIsCollasped = true )
Parameters
- vn
- [input] containing 1(0) for each branch that needs to be collapsed(expanded) from top to bottom in proper sequence
- bOnlyTopLevelIsBranch
- [input] 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.
- nRow
- [input] 0-offset row index
- bIsCollasped
- [input] true for collapsed and false for expanded
Return
true if success else false.
true on successful or false on failure
Examples
See examples of GetCollapsed
Remark
See Also
header to Included
GridControl.h