在文本中查找一个子字符串,并将其所在行输出到EDIT里面,要怎么做呢,求教??
写了一个例子:CString strText = "your test text";int pos = strText.Find("test");CString szResult;szResult.Format("%d", pos);GetDlgItem(EDIT_CTRL_ID)->SetWindowText(szResult);