CEditView calls OnReplaceSel when the user selects the Replace button in the standard Replace dialog box.
After replacing the selection, this function searches the text in the buffer for the next occurrence of the text specified by lpszFind, in the direction specified by bNext, with case sensitivity specified by bCase. The search is accomplished through a call to FindText. If the text is not found, OnTextNotFound is called.
Override OnReplaceSel to change the way a CEditView-derived object replaces the selected text.