SetWindowText
SetSel
ReplaceSel
// 追加する文字列 CString strNewText; strNewText = _T("新しい文字列"); // m_editはCEdit型のメンバ変数 int nLen = m_edit.GetWindowTextLength(); m_edit.SetFocus(); m_edit.SetSel(nLen, nLen); m_edit.ReplaceSel(strNewText);