0

次のコードは、単語の最初の出現を問題なく検出します。

int len = m_find.LineLength(m_find.LineIndex(0));
CString path;
LPTSTR p = path.GetBuffer(len);
m_find.GetLine(0, p, len);
path.ReleaseBuffer();

// Set the selection to be the first occurrence of the  
// string lpszmyString, if it is found.   
FINDTEXTEX ft;
ft.chrg.cpMin = nEndChar;
ft.chrg.cpMax = -1;
ft.lpstrText = p;
long n = ctrl.FindText(FR_MATCHCASE|FR_WHOLEWORD|FR_DOWN, &ft);
if (n != -1)
{
    ctrl.SetSel(ft.chrgText);
}

次のオカレンスを見つけるにはどうすればよいですか?

4

1 に答える 1