COXMaskedEdit::SetInsertMode

Dundas

COXMaskedEdit::SetInsertMode

Class Members | Overview

void SetInsertMode(BOOL bInsertMode)

Parameters

bInsertMode

If TRUE characters are inserted; if FALSE characters will overwrite existing characters.

Remarks

The standard CEdit control does not support over-typing, but COXMaskedEdit does support an overtype mode. SetInsertMode lets the coder toggle this mode on or off, but the control can also change mode based on user input.

Internally (in OnKeyDown) the control will respond to the insert key to toggle insert mode using this function.

If the control is in insert mode and there is no room to insert characters the control will revert to over-type mode automatically.

Note that overtype mode is related to the input mask - if no mask is set the control will act like a normal CEdit and SetInsertMode will have no effect.

See Also: GetInsertMode