EM_FINDTEXTEXW Message
The EM_FINDTEXTEXW message is the Unicode version of the EM_FINDTEXTEX message It is used to locate text within the 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_FINDTEXTEXW,
| // 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
- If set, the operation searches from the end of the current selection to the end of the document. If not set, the operation searches from the end of the current selection to the beginning of the document.
- 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.
- FR_MATCHCASE
- If set, the search operation is case-sensitive. If not set, the search operation is case-insensitive.
- FR_MATCHALEFHAMZA
- If set, the search differentiates between alefs with different accents. If not set, Arabic and Hebrew alefs with different accents are all matched by the alef character.
- FR_MATCHDIAC
- If set, the search operation considers diacritical marks. If not set, Arabic and Hebrew diacritical marks are ignored.
- FR_MATCHKASHIDA
- If set, the search operation considers kashidas. If not set, Arabic and Hebrew kashidas are ignored.
- lParam
-
Pointer to a FINDTEXTEXW 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
EM_FINDTEXTEXW uses the FINDTEXTEXW structure, while EM_FINDTEXTW uses the
FINDTEXTW structure. The difference is that EM_FINDTEXTEXW reports back the range of text that was found.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows 95 with Rich Edit 2.0
, Windows
98, Windows NT
4.0 |
---|
See Also
Rich Edit Controls, FINDTEXTEXW