EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions

Editor_FindA

Searches an ANSI string. You can use this inline function or explicitly send the EE_FINDA message.

Editor_FindA( HWND hwnd, UINT nFlags, LPCSTR szFind )

Parameters

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_AROUND Moves to start/end of the text.
FLAG_FIND_BOOKMARK Sets bookmarks on lines where the string is matched.
FLAG_FIND_CASE Matches cases.
FLAG_FIND_CLOSE Closes the dialog box after finished.
FLAG_FIND_COUNT Counts the occurrences of the matched string.
FLAG_FIND_ESCAPE Uses escape sequences.
FLAG_FIND_NEXT Searches the string downward from the cursor position. If this flag is not set, searches the string upward.
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_FIND_SELECT_ALL Selects all matched strings.

szFind

Specifies a string to search.

Return Values

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

Copyright © 2003-2013 by Emurasoft, Inc.