BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::InsertChar ( TCHAR  nChar,
BOOL  bRedraw,
int  nInsertFrom,
BOOL  bSetCaret = TRUE 
)
virtual

Inserts a character into edit control at the specific text buffer offset.

Returns
Nonzero if the function succeeds; otherwise 0.

This function inserts a character in the edit control and places it in the undo buffer. The text is scrolled if necessary.

Parameters
nCharSpecifies the character to insert.
bRedrawIf TRUE the edit control will be redrawn.
nInsertFromSpecifies the zero-based offset in the editor text buffer.
bSetCaretIf TRUE the caret will be moved to the new location specified by the "nInsertFrom" parameter.