BOOL CSimpleFinderView::Findx(CString str)
{
return FindText(str,FALSE,FALSE,FALSE);
}
I have wrote above function in view class derived from CRicheditview. I will call this function from mainfrm class. Consider following example text present view. "function is not working, so remove the the function" To find the word "function", I traps characters at mainfrm pretranslate message and calling above function for every key pressing. Keypressed | Result -------------------- f | function is not working, so remove the the function fu | function is not working, so remove the the function Findtext() selecting the second occurrence of the word function. But it suppose to be first one. I feel this CRichEditView::FindText() will not help Can u suggest any other solution?