BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::OnBeforeTextInserted ( CString &  strInsertedText,
int  nOffset 
)
inlinevirtual

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

Returns
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.

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