Editor_ReplaceW¶
Replaces a Unicode string. This inline function is obsolete. Newer plug-ins should use the Editor_FindReplace inline function instead. You can use this inline function or explicitly send the EE_REPLACEW message.
Editor_ReplaceW( HWND hwnd, UINT nFlags, LPCWSTR szFindReplace ); hwnd Specifies the window handle of the view or frame of EmEditor. 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. You must specify
the string to search and the string to replace, in that order. The null
character ('\0') must be inserted between the two. If the message succeeds, the return value is nonzero. If the message fails,
the return value is zero.Parameters¶
Return Values¶