CEdit content;style = ::GetWindowLong(content.m_hWnd, GWL_STYLE );
LONG lRet = ::SetWindowLong(smsContent.m_hWnd, GWL_STYLE, style | ES_MULTILINE | ES_AUTOVSCROLL );
content.SetWindowPos(this,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
LONG lRet = ::SetWindowLong(smsContent.m_hWnd, GWL_STYLE, style | ES_MULTILINE | ES_AUTOVSCROLL );
content.SetWindowPos(this,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
content.ModifyStyle(ES_AUTOHSCROLL,ES_MULTILINE|ES_AUTOVSCROLL,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
添加一个ES_WANTRETURN属性试试
不过太厉害了点,呵呵!