在EditBOX点右键选择建立类向导双击控件ID选择Control输入变量名在双击按钮输入m_sd.SetWindowText("sdf");就行了
void CTESTDlg::OnButton4() { // TODO: Add your control notification handler code here char a[10]="Hello"; GetDlgItem(IDC_EDIT2_SHOW)->SetWindowText(a);}