Plug-in Reference — Messages — EE_INSERT_STRINGW

# EE_INSERT_STRINGW

Inserts a Unicode string into the current cursor position. You can send this message explicitly or use the Editor_InsertStringW inline function, Editor_InsertW inline function, or Editor_OverwriteW inline function.

    EE_INSERT_STRINGW
    wParam = nInsertType;
    lParam = (LPARAM) (LPCWSTR) szString;

## Parameters

nInsertType

Specifies a combination of the following values.

OVERWRITE_PER_PROP | Inserts or Overwrites depending on the current Insert/Overwrite status.
OVERWRITE_INSERT | Always inserts, and does not overwrite the existing string.
OVERWRITE_OVERWRITE | Always overwrites the existing string.
KEEP_SOURCE_RETURN_TYPE | Keep the return type (CR only, LF only or both CR and LF) specified in the szString parameter.
KEEP_DEST_RETURN_TYPE | Keep the destination return type (CR only, LF only or both CR and LF).

szString

Specifies the string to be inserted.

## Return Values

The return value is not used.

## Version

KEEP_SOURCE_RETURN_TYPE and KEEP_DEST_RETURN_TYPE flags are supported on EmEditor Version 7.00 or later.