((CEdit*)GetDlgItem(IDC_EDIT1))->SetSel(GetDlgItem(IDC_EDIT1)->GetWindowTextLength(),
GetDlgItem(IDC_EDIT1)->GetWindowTextLength());
((CEdit*)GetDlgItem(IDC_EDIT1))->ReplaceSel("追加文字\n");
//(IDC_EDIT1)是Edit Control的ID号
((CEdit*)GetDlgItem(IDC_EDIT1))->SetSel(GetDlgItem(IDC_EDIT1)->GetWindowTextLength(),
GetDlgItem(IDC_EDIT1)->GetWindowTextLength());
((CEdit*)GetDlgItem(IDC_EDIT1))->ReplaceSel("追加文字\n");
//(IDC_EDIT1)是Edit Control的ID号
转载于:https://www.cnblogs.com/cwbcwb505/archive/2008/12/03/1346538.html