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.

Remarks

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

For more information, see MessageBeep in the Platform SDK.

Example

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

See Also

CRichEditView Overview | Class Members | Hierarchy Chart | CRichEditView::FindText | CRichEditView::FindTextSimple | CRichEditView::OnFindNext

Show:
© 2014 Microsoft