BCGSoft Professional Editor for MFC
virtual BOOL CBCGPEditCtrl::IndentSelection ( BOOL  bForward)
virtual

Indents the selected text forward or backward.

Returns
Nonzero if the function succeeds; otherwise 0. The function always returns FALSE if the text is not selected (m_iStartSel is -1).

This function shifts the selected text forward or backward inserting or deleting spaces according to the number specified by m_nIndentSize value.

Parameters
bForwardSpecifies whether to indent the selected text forward (TRUE) or backward (FALSE).