你在對話框中声明一个变量,是CString的。m_Cedit指向Cedit的ID号。

解决方案 »

  1.   

    将这个控件与定义一个变量联系。。然后 当 空间中的数值变化后调用UpdataData(TRUE);  //True  控制着 控件中的值----> 变量中
                       //FALSE        变量中的值--->  控件中ok!
      

  2.   

    保存哪里去?变量数据交换如上
    到文件?
    CFile file;
    CString strTextContent;
    m_wndEditContent.GetWindowText(strTextContent);
    file.Open(strFullPathName,CFile::modeCreate|CFile::modeWrite);
    file.WriteHuge((LPCTSTR)strTextContent,strTextContent.GetLength());
    file.Close();