BCGSuite for MFC
void CBCGPOutlineNode::GetBlocksByStateInRange ( int  nStart,
int  nEnd,
CObList &  lstBlocks,
BOOL  bCollapsed,
BOOL  bFullInRangeOnly = TRUE,
BOOL  bRecursive = TRUE 
) const

Finds all collapsed or expanded nodes inside the specified range.

Use this function to retrieve all collapsed or expanded nodes inside the specified range.

Parameters
nStartSpecifies the start of the range. It is a zero-based offset in the internal buffer of edit control.
nEndSpecifies the end of range. It is a zero-based offset in the internal buffer of edit control.
lstBlocksOutput parameter. When the function returns, it will be filled with a list of blocks (nodes) having the appropriate state.
bCollapsedIf TRUE, collapsed blocks will be returned. If FALSE, expanded blocks will be returned.
bFullInRangeOnlyIf TRUE, the function gets only the nodes that are fully included in the range. If FALSE, it also gets nodes partially included in the range.
bRecursiveIf TRUE, the function performs deep find. If FALSE, the function performs shallow find.