Partager via


CRichEditView::OnTextNotFound

Appelé par l'infrastructure chaque fois qu'une recherche échoue.

virtual void OnTextNotFound(
   LPCTSTR lpszFind 
);

Paramètres

  • lpszFind
    Le texte qui est introuvable.

Notes

Remplacez cette fonction pour modifier la notification de sortie de MessageBeep.

Pour plus d'informations, consultez MessageBeep dans Kit de développement logiciel Windows.

Exemple

void CMyRichEditView::OnTextNotFound(LPCTSTR lpszFind)
{
   // Replace the beep with a message box
   CString str;
   str.Format(_T("'%s' was not found."), lpszFind);
   AfxMessageBox(str);
}

Configuration requise

Header: afxrich.h

Voir aussi

Référence

Classe de CRichEditView

Graphique de la hiérarchie

CRichEditView::FindText

CRichEditView::FindTextSimple

CRichEditView::OnFindNext