如何动态创建编辑筐!?

解决方案 »

  1.   

    CEdit* pEdit = new CEdit;
       pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
          CRect(10, 10, 100, 100), this, 1);
      

  2.   

    The function which to Dynamic create CEdit has a ID parameter, as if you give the ID=ID_MYEDIT;then you could do as follow to get the contents int the ID_MYEDIT:CString szContent;
    GetDlgItemText(ID_MYEDIT,szContent);