EM_FINDTEXTEX Message
The EM_FINDTEXTEX message finds text within a rich edit control.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage(
| // returns LRESULT in lResult
|
(HWND) hWndControl,
| // handle to destination control
|
(UINT) EM_FINDTEXTEX,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Specifies the parameters of the search operation. This parameter can be one or more of the following values.
- FR_DOWN
- Microsoft® Rich Edit 2.0 and later: If set, the search is from the end of the current selection to the end of the document. If not set, the search is from the end of the current selection to the beginning of the document.
Rich Edit 1.0: The FR_DOWN flag is ignored. The search is always from the end of the current selection to the end of the document.
- FR_MATCHALEFHAMZA
- Rich Edit 3.0 and later: If set, the search differentiates between Arabic and Hebrew alefs with different accents. If not set, all alefs are matched by the alef character alone.
- FR_MATCHCASE
- If set, the search operation is case-sensitive. If not set, the search operation is case-insensitive.
- FR_MATCHDIAC
- Rich Edit 3.0 and later: If set, the search operation considers Arabic and Hebrew diacritical marks. If not set, diacritical marks are ignored.
- FR_MATCHKASHIDA
- Rich Edit 3.0 and later: If set, the search operation considers Arabic and Hebrew kashidas. If not set, kashidas are ignored.
- FR_WHOLEWORD
- If set, the operation searches only for whole words that match the search string. If not set, the operation also searches for word fragments that match the search string.
- lParam
-
Pointer to a FINDTEXTEX structure containing information about the find operation.
Return Value
If there are more matches, the return value is the zero-based character position of the next match.
If there are no more matches, the return value is –1.
Remarks
If the search operation finds a match, the chrgText member of the FINDTEXTEX structure returns the range of characters that contain the matching text.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows
95, Windows NT
4.0 |
---|
See Also
Rich Edit Controls, FINDTEXTEX