Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.


Call this function to reset the internal search state of the CRichEditView control after a failed call to FindText.

void TextNotFound(
   LPCTSTR lpszFind



Contains the text string that was not found.

It is recommended that this method be called immediately after failed calls to FindText so that the internal search state of the control is properly reset.

The lpszFind parameter should include the same content as the string provided to FindText. After resetting the internal search state, this method will call the OnTextNotFound method with the provided search string.

See the example for CRichEditView::FindText.

Community Additions

© 2015 Microsoft