void CFileDialogDlg::OnOpen() 
{
// 构造文件打开对话框
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 
"All File(*.TXT)|*.TXT", AfxGetMainWnd()); CString strPath, strText = "";
if (dlg.DoModal() == IDOK)
{
strPath = dlg.GetPathName(); // 获取文件路径
m_OpenPath.SetWindowText(strPath); // 显示文件路径
CFile file(strPath, CFile::modeRead); // 以读方式打开文件
char read[10000];
file.Read(read, 10000); // 读取文件内容

    for (int i = 0; i<file.GetLength(); i++)
{
strText += read[i];
}

file.Close(); // 关闭文件
m_FileText.SetWindowText(strText); // 显示文件内容
}

}
按照这个代码写的一个对话框,为什么在窗口中显示的文本不能换行呢?其中m_FileText是控件edit Box 关联的变量。