CRichEditView::FindTextSimple
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CRichEditView::FindTextSimple

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 
);

Parameters

lpszFind
Contains the string to search for.
bCase
Indicates if the search is case sensitive.
bWord
Indicates if the search should match whole words only, not parts of words.
bNext
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.

Return Value

Nonzero if the lpszFind text is found; otherwise 0.

Example

See the example for CRichEditView::FindText.

See Also

CRichEditView Overview | Class Members | Hierarchy Chart | CRichEditCtrl::FindText | CRichEditCtrl::SetSel | CRichEditView::FindText

Show:
© 2016 Microsoft