BCGSoft Professional Editor for MFC
virtual BOOL CBCGPEditCtrl::ProcessTextBeforeInsert ( CString &  strText)

Called by the framework just before the text is inserted into the edit control.

Nonzero if the function succeeds; otherwise 0.

It removes '\r' symbols, if m_bKeepTabs is FALSE it replaces all '\t' symbols with spaces and wraps strings that are longer than m_nMaxScrollWidth.

strTextContains the text being inserted.