多行eidt 调用SetScrollPos() 滑块位置改变了 但是显示的内容没变??为什么?
一个多行显示的eidt,我想让eidt总是能显示显示最后一行的内容,于是调用SetScrollPos()。
调用后就出现以上现象,为什么???

解决方案 »

  1.   

    这里有个比较不错的例子,希望对楼主有帮助http://www.codeproject.com/KB/edit/multi_hyperedit.aspx
      

  2.   

    SetScrollPos() 只是设置滚动条的位置,内容得自己滚动,
    用scrollwindow 试试,
      

  3.   

    CEdit::LineScroll 
    void LineScroll( int nLines, int nChars = 0 );
      

  4.   

    The edit control does not scroll vertically past the last line of text in the edit control. If the current line plus the number of lines specified by nLines exceeds the total number of lines in the edit control, the value is adjusted so that the last line of the edit control is scrolled to the top of the edit-control window. 
    //把行数搞大些,就是最后一行。