EM_FINDTEXTEX message
Finds text within a rich edit control.
Parameters
- wParam
-
Specifies the behavior of the search operation. This parameter can be one or more of the following values.
- lParam
-
A FINDTEXTEX structure containing information about the find operation.
Return value
If the target string is found, the return value is the zero-based position of the first character of the match. If the target is not found, the return value is –1.
Remarks
Use this message to find ANSI strings. For Unicode, use EM_FINDTEXTEXW.
The cpMin member of FINDTEXTEX.chrg always specifies the starting-point of the search, and cpMax specifies the end point. When searching backward, cpMin must be equal to or greater than cpMax. When searching forward, a value of –1 in cpMax extends the search range to the end of the text.
If the search operation finds a match, the chrgText member of the FINDTEXTEX structure returns the range of character positions that contains the matching text.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012