Thanks for the tip cra.
But now it seems I have another problem. When I try to retrieve each line of the edit box, I get empty strings!
Here is my code (inspired from an MSDN example)
=======================================
CString strCurrentLine, strLine;
CEdit* pmyEdit = (CEdit*)GetDlgItem(IDC_MY_EDITBOX);
int i, nLineCount = pmyEdit->GetLineCount();
// Dump every line of text of the edit control.
for (i=0;i < nLineCount;i++)
{
pmyEdit->GetLine(i,
strCurrentLine.GetBuffer(pmyEdit->LineLength(i)));
strCurrentLine.ReleaseBuffer();
strLine.Format(TEXT("line %d: '%s'\r\n"

, i, strCurrentLine.GetBuffer(0));
MessageBox(strLine, _T("FileName"

, MB_ICONINFORMATION);
}
==============================
In the message box, I always get something like:
Line 0: ''
Line 1: '', etc.
when there actually is some text in the edit box.
What am I doing wrong here?
Thanks