SetDlgItemText(IDC_EDIT1,_T("设置控件文本"));
用SetWindowText就可以了。CString str(_T("123"));CEdit edit;edit.SetWindowText(str);