我是这样做的:
int High = this->m_Output.GetFirstVisibleLine();
int All  = this->m_Output.GetLineCount();
this->m_Output.LineScroll(All-High-1,0);
this->m_Output.SendMessage(EM_SCROLL,0,0);
可是更新时要不停的抖动,请高手不吝赐教!

解决方案 »

  1.   

    试试:this->m_Output.SetRedraw(FALSE);int High = this->m_Output.GetFirstVisibleLine();
    int All  = this->m_Output.GetLineCount();
    this->m_Output.LineScroll(All-High-1,0);
    this->m_Output.SendMessage(EM_SCROLL,0,0);this->m_Output.SetRedraw(TRUE);
      

  2.   

    int  nLen=m_rich.GetWindowTextLength  ();  
                                       m_rich.SetSel(nLen,nLen);  
                                       m_rich.ReplaceSel(  "新追加的文本  ");  
                                       m_rich.ReplaceSel(  "\r\n  "); 解决方法,谢谢上楼的,分已给,请查收,呵呵