CBCGPOutlineBaseNode* CBCGPEditCtrl::AddOutlining | ( | int | nStartOffset, |
int | nEndOffset, | ||
int | nNameOffset = 0 , |
||
BOOL | bCollapsed = TRUE , |
||
LPCTSTR | lpszReplace = NULL |
||
) |
Creates a new collapsible node.
This function creates a new user-defined collapsible node.
nStartOffset | Specifies 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. |
nEndOffset | Specifies 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. |
nNameOffset | Specifies 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. |
bCollapsed | Specifies whether the node is initially collapsed or not. |
lpszReplace | Specifies the replace string that is shown when the node is collapsed. |