int nLen = m_edtOutputEdit.GetWindowTextLength (); m_edtOutputEdit.SetSel (nLen,nLen); m_edtOutputEdit.ReplaceSel (sMsg); 转载于:https://blog.51cto.com/wellwy/492075