怎么才能在一个编辑控件中分多次输出数据

解决方案 »

  1.   

    就是用SetWindowTextW()输出了一个字符串
    然后再想输出别的字符,但要两个都显示在控件上
      

  2.   

    可以这样:
    CString str;
    GetWindowText(str);
    str += "这次要输出的数据"
    SetWindowText(str);不知能否满足楼主需求。
      

  3.   

    应该使用:
    CEdit::ReplaceSel 
    void ReplaceSel( LPCTSTR lpszNewText, BOOL bCanUndo = FALSE );ParameterslpszNewTextPoints to a null-terminated string containing the replacement text.bCanUndoTo specify that this function can be undone, set the value of this parameter to TRUE . The default value is FALSE.先把selection搞到最后,再替换掉。这样要快的多
      

  4.   

    CString str;
    GetWindowText(str);
    str += "这次要输出的数据"+"\r\n"
    SetWindowText(str);