We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Call this function to find the specified text and set it to be the current selection.

BOOL FindTextSimple(
   LPCTSTR lpszFind,
   BOOL bCase = TRUE,
   BOOL bWord = TRUE,
   BOOL bNext = TRUE 


Contains the string to search for.


Indicates if the search is case sensitive.


Indicates if the search should match whole words only, not parts of words.


Indicates the direction of the search. If TRUE, the search direction is toward the end of the buffer. If FALSE, the search direction is toward the beginning of the buffer.

Nonzero if the lpszFind text is found; otherwise 0.

See the example for CRichEditView::FindText.

Header: afxrich.h