EmEditor Home - EmEditor Help - Plug-in Reference - Messages

EE_REPLACEW

Replaces a Unicode string. You can send this message explicitly or by using the Editor_ReplaceW inline function.

EE_REPLACEW
    wParam = (WPARAM) (UINT) nFlags;
    lParam = (LPARAM) (LPCWSTR) szFindReplace;

Parameters

nFlags

You can specify a combination of the following values.

Value Meaning
FLAG_FIND_CASE Matches case.
FLAG_FIND_CLOSE Closes the dialog box after finished.
FLAG_FIND_ESCAPE Uses escape sequences.
FLAG_FIND_NO_PROMPT Suppresses displaying a dialog box even if no string is found.
FLAG_FIND_ONLY_WORD Searches only words.
FLAG_FIND_REG_EXP Uses a regular expression.
FLAG_FIND_SAVE_HISTORY Saves the searched string for repeated search.
FLAG_REPLACE_ALL Replaces all occurrences.
FLAG_REPLACE_SEL_ONLY Replaces only in the selection when specified with FLAG_REPLACE_ALL.

szFindReplace

Specifies a string to search and a string to replace to. You must specify the string to search and the string to replace to in this order, and the null character ('\0') must be inserted between the two.

Return Values

If the message succeeds, the return value is nonzero. If the message fails, the return value is zero.

Copyright 2003-2014 by Emurasoft, Inc.