方法1:定义一个变量与控件绑定,如CString sData;需要使用取值时,调用UpdateData(); 然后sData里面就该控件的值了。方法2: CString sData = GetDlgItem(ID)->GetWindowText();