FINDTEXTNOTIFY Structure
The FINDTEXTNOTIFY structure contains information used by the common find-and-replace dialog box to notify its owner window about the user's search actions.
Syntax
typedef struct tagFINDTEXTNOTIFY {
NMHDR hdr;
LPSTR lpstrText;
int iStart;
int iEnd;
} FINDTEXTNOTIFY, *LPFINDTEXTNOTIFY;
Members
| Member | Type | Description |
|---|---|---|
| hdr | NMHDR | A NMHDR structure that contains the window handle and identifier of the control sending the message. |
| lpstrText | LPSTR |
A pointer to the string being searched. |
| iStart | int |
The starting character index for the search within the string pointed to by lpstrText. |
| iEnd | int |
The ending character index for the search within the string pointed to by lpstrText. |
Remarks
The common find-and-replace dialog box sends the WM_NOTIFY message to its owner window with a pointer to a FINDTEXTNOTIFY structure. The hdr.code member of the NMHDR structure is set to (WORD) -257 (FINDFILE_TYPE_FINDTEXT).
The owner window can use the information in the FINDTEXTNOTIFY structure to perform custom search operations. For example, it can examine the string and search range to determine if the search string should be replaced, or to provide feedback to the user.
Note: This structure is associated with the common find-and-replace dialog box, which is part of the Rich Edit control functionality. Ensure you are using a Rich Edit control if you intend to utilize this structure.
Requirements
| Element | Description |
|---|---|
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | richedit.h (include RichEdit.h) |
| Library | User32.lib |
| DLL | User32.dll |