Export (0) Print
Expand All

CRichEditView::OnTextNotFound 

Called by the framework whenever a search fails.


virtual void OnTextNotFound(
   LPCTSTR lpszFind 
);

Parameters

lpszFind

The text which was not found.

Override this function to change the output notification from a MessageBeep.

For more information, see MessageBeep in the Platform SDK.

void CMyRichEditViewTestView::OnTextNotFound( LPCTSTR lpszFind )
{
   // Replace the beep with a message box
   TCHAR *lpszMsg = " was not found.";
   TCHAR *lpszBuf = new TCHAR[_tcslen(lpszMsg) + _tcslen(lpszFind)];
   wsprintf( lpszBuf, "%s %s", lpszFind, lpszMsg );
   AfxMessageBox( lpszBuf );
}

Community Additions

ADD
Show:
© 2015 Microsoft