MFC 文本框多行显示

来源:互联网 发布:萍乡教育网网络管理 编辑:程序博客网 时间:2024/06/05 09:06
 CString str="";
   
for(int index=0;index < length;index++)
{
CString strm;



strm.Format("舰艇有%s:\r\n",ship_pos[index].stMyplat.shipname);
 
str+=strm;






}
GetDlgItem(IDC_EDIT1)->SetWindowText(str);
原创粉丝点击