首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

编辑框中的换行,该如何处理

2013-01-02 
编辑框中的换行CString strTempGetDlgItemText(IDC_EDIT7,strTemp)CString showstrshowstr.Format(%d

编辑框中的换行
      CString strTemp;
GetDlgItemText(IDC_EDIT7,strTemp);
CString showstr;
showstr.Format("%d A   %d B",A,B);
showstr+="\r\n";
showstr+=strTemp;
UpdateData(FALSE);
GetDlgItem(IDC_EDIT7)->SetWindowText((showstr));//IDC_EDIT7为编辑框ID

//为什么在编辑框中不换行呢?

[解决办法]
要事先设置编辑框支持多行属性?

热点排行