void CBCGPOutlineNode::GetBlocksByState | ( | CObList & | lstBlocks, |
BOOL | bCollapsed, | ||
BOOL | bRecursive = TRUE |
||
) | const |
Returns a list of subnodes according to their state, either collapsed or expanded.
Used to get the subnodes for this collapsible node. If bCollapsed - TRUE, the function retrieves the collapsed nodes, else it retrieves the expanded nodes.
If bRecursive is FALSE, the lstBlocks is filled by immediate children of this node, otherwise all children are recursively iterated for their blocks.
lstBlocks | Output parameter. When the function returns, it will be filled with a list of blocks (nodes) having the appropriate state. |
bCollapsed | If TRUE, collapsed blocks will be returned. If FALSE, expanded blocks will be returned. |
bRecursive | If TRUE, the function performs deep find. If FALSE, the function performs shallow find. |