BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::OnBeforeTextDeleted ( int  nOffset,
const CString &  strDeletedText 
)
inlinevirtual

Called by the edit control when a piece of text is about to be deleted from the edit control.

Returns
Should return TRUE if the text can be deleted from the edit control. Should return FALSE to disable text deletion.

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

Parameters
nOffsetThe offset at which the text is about to be deleted.
strDeletedTextContains the text to be deleted.