写在触发事件里面,IDC_EDIT1是编辑框的id CString mydata; GetDlgItemText(IDC_EDIT1,mydata); SetDlgItemText(IDC_EDIT2,mydata);