BCGSoft Professional Editor for MFC
virtual BOOL CBCGPEditCtrl::OnBeforeTextInserted ( CString &  strInsertedText,
int  nOffset 

Called by the edit control when a fragment of text is about to be inserted in the edit control.

Should return TRUE if the text can be inserted into the edit control. Should return FALSE to disable text insert.

Override this function in a derived class to control text insert.

strInsertedTextContains the text that is about to be inserted.
nOffsetSpecifies the offset at which the text will be inserted.