CRichEditView::OnReplaceSel

Called by the framework when processing Replace commands from the Replace dialog box.

virtual void OnReplaceSel(
   LPCTSTR lpszFind,
   BOOL bNext,
   BOOL bCase,
   BOOL bWord,
   LPCTSTR lpszReplace 
);

Parameters

  • lpszFind
    The text to be replaced.

  • bNext
    Indicates the direction of the search: TRUE is down; FALSE, up.

  • bCase
    Indicates if the search is case sensitive.

  • bWord
    Indicates if the search must select whole words or not.

  • lpszReplace
    The replacement text.

Remarks

Call this function to replace one occurrence of some given text with another string. Override this function to alter search characteristics for this view.

Requirements

Header: afxrich.h

See Also

Reference

CRichEditView Class

Hierarchy Chart

CRichEditView::OnReplaceAll

Other Resources

CRichEditView Members