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