在编辑框控件中多行显示文本信息

来源:互联网 发布:xd mac 破解版 编辑:程序博客网 时间:2024/06/16 22:22

IDC_SHOW---为编辑框控件的ID:

void CGrabStateMSGDlg::ShowMsg(CString strMsg)
{
    ((CEdit*)GetDlgItem(IDC_SHOW))->SetSel(-1, -1);
    ((CEdit*)GetDlgItem(IDC_SHOW))->ReplaceSel(strMsg+_T("\r\n"));
}
0 0