| 
 一.将字符串写入编辑框  CString str;  str="1234567";  SetDlgItemText(IDC_EDIT1, str);  
二.读取编辑框内容 1. CEdit   *   pedit=(CEdit*)GetDlgItem(IDC_EDIT1);     CString   str;     pedit->GetWindowText(str);  MessageBox(str); 2. CString   str;     GetDlgItemText(IDC_EDIT1, str);   MessageBox(str);
  
 |