BCGControlBar Pro for MFC
virtual int CBCGPEditCtrl::ReplaceAll ( LPCTSTR  lpszFind,
LPCTSTR  lpszReplace,
BOOL  bNext = TRUE,
BOOL  bCase = TRUE,
BOOL  bWholeWord = FALSE 

Replaces all matching substrings in the edit control.

The number of replaced substrings.

Use this function to replace all substring that match to lpszFind with substring specified by lpszReplace.

lpszFindSpecifies the text to find
lpszReplaceSpecifies the text to replace with
bNextSpecifies forward (TRUE) or backward (FALSE) search.
bCaseIf TRUE, the search is case-sensitive.
bWholeWordIf TRUE, the function looks for the exact word.