EM_FINDTEXTW Message
The EM_FINDTEXTW message is the Unicode version of the EM_FINDTEXT 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_FINDTEXTW,
| // 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
- By default, Arabic and Hebrew alefs with different accents are all matched by the alef character. Set this flag if you want the search to differentiate between alefs with different accents.
- FR_MATCHDIAC
- By default, Arabic and Hebrew diacritical marks are ignored. Set this flag if you want the search operation to consider diacritical marks.
- FR_MATCHKASHIDA
- By default, Arabic and Hebrew kashidas are ignored. Set this flag if you want the search operation to consider kashidas.
- lParam
-
Pointer to a FINDTEXTW 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_FINDTEXTW uses the FINDTEXTW structure, while EM_FINDTEXTEXW uses the FINDTEXTEXW structure. The difference is that 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, FINDTEXTW