编辑框的大局启multiline要为true
尝试滚如下面腊配代码
CString s; m_MsgEdit.GetWindowText(s); s+=_T(" ")+strMsg; m_MsgEdit.SetWindowText(s);