다음을 통해 공유


CRichEditView::OnReplaceAll

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

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

Parameters

  • lpszFind
    The text to be replaced.

  • lpszReplace
    The replacement text.

  • bCase
    Indicates if the search is case sensitive.

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

Remarks

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

Example

See the example for CRichEditView::FindText.

Requirements

Header: afxrich.h

See Also

Concepts

CRichEditView Class

CRichEditView Members

Hierarchy Chart

CRichEditView::OnReplaceSel

CRichEditView::OnFindNext