BCGSoft Professional Editor for MFC
void CBCGPEditCtrl::HideSelection ( )

Turns selected text into collapsible node.

Hides the currently selected text turning it into collapsible node. This command creates a new collapsible node at the place of selected text.