Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Plug-in Reference > Messages

EmEditor Plug-in Reference: EE_REPLACEA

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - Plug-in Reference - Messages

EE_REPLACEA

Replaces an ANSI string. This message is obsolete. The newer plug-in should use the EE_FIND_REPLACE message instead. You can send this message explicitly or use the Editor_ReplaceA inline function.

EE_REPLACEA

   wParam = (WPARAM) (UINT) nFlags;

   lParam = (LPARAM) (LPCSTR) 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-2016 by Emurasoft, Inc.