绑定控件HWND logEdit = ::GetDlgItem(this->m_hWnd, IDC_EDIT_LOG); m_outputlogEdit.Attach(logEdit);滚动到最新一行当CEdit是多行显示的时候m_outputlogEdit.LineScroll(m_outputlogEdit.GetLineCount(), 0);