BCGSoft Professional Editor for MFC
CBCGPOutlineBaseNode* CBCGPEditCtrl::AddOutlining ( int  nStartOffset,
int  nEndOffset,
int  nNameOffset = 0,
BOOL  bCollapsed = TRUE,
LPCTSTR  lpszReplace = NULL 
)

Creates a new collapsible node.

Returns
The pointer to a newly created collapsible node

This function creates a new user-defined collapsible node.

Parameters
nStartOffsetSpecifies the zero-based offset in internal buffer of the edit control. This offset points to the start of hidden area for a collapsible node to be created.
nEndOffsetSpecifies the zero-based offset in internal buffer of the edit control. This offset points to the end of hidden area for a collapsible node to be created.
nNameOffsetSpecifies the left offset from m_nStart. This offset points to a keyword (i.e. if, while, function name etc) for this collapsible node. If m_nNameOffset is 0, it means that there is no keyword or keyword located at m_nStart.
bCollapsedSpecifies whether the node is initially collapsed or not.
lpszReplaceSpecifies the replace string that is shown when the node is collapsed.