|
|
当前位置:首页 > > 怎么按行读取一个edit(多行)的内容 |
void CAaaDlg::OnButton7() { // TODO: Add your control notification handler code here int i, nLineCount = m_edit.GetLineCount(); CString strText, strLine; for (i=0; i < nLineCount; i++) { int len = m_edit.LineLength(m_edit.LineIndex(i)); m_edit.GetLine(i, strText.GetBuffer(len), len); strText.ReleaseBuffer(len); MessageBox(strText); } }
|
|