EM_FINDTEXT

The EM_FINDTEXT message finds text within a rich edit control.

EM_FINDTEXT 
wParam = (WPARAM) (UINT) fuFlags; 
lParam = (LPARAM) (FINDTEXT FAR *) lpFindText; 
 

Parameters

fuFlags
Zero or more of the FR_MATCHCASE and FR_WHOLEWORD values.
lpFindText
Pointer to a FINDTEXT structure containing information about the find operation.

Return Values

Returns the zero-based character position of the next match, or – 1 if there are no more matches.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.
  Unicode: Defined as Unicode and ANSI messages.

See Also

Rich Edit Controls Overview, Rich Edit Messages, FINDTEXT