如何读取edit控件每一行数据?
int nLineCount1 = (m_FiberStren_c.GetLineCount()-1);
CString *strText = new CString[nLineCount1];
for (int i=0; i < nLineCount1; i++)
{
int len = m_FiberStren_c.LineLength(m_FiberStren_c.LineIndex(i));
m_FiberStren_c.GetLine(i,strText[i].GetBuffer(len),len);
strText[i].ReleaseBuffer(len);
}
PaintStren(nLineCount1,strText);
delete []strText;
m_FiberStren_c是CEdit变量;
读取每一行到*strText;