这是代码:
FINDTEXT ft;
LPCTSTR lpstrFind = L"main";
ft.lpstrText = lpstrFind;
ft.chrg.cpMin = 0;
ft.chrg.cpMax = -1;
long n =rtfedit.FindTextW(FR_DOWN, ft);
rtfedit.SetSel(n,n + lstrlen(lpstrFind) );
这是代码:
FINDTEXT ft;
LPCTSTR lpstrFind = L"main";
ft.lpstrText = lpstrFind;
ft.chrg.cpMin = 0;
ft.chrg.cpMax = -1;
long n =rtfedit.FindTextW(FR_DOWN, ft);
rtfedit.SetSel(n,n + lstrlen(lpstrFind) );