L Lucifer Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-30 #1 因为程序的需要,我想让文本框的scrollbars始终保持在最下端<br><br>我记得有个控制卷屏的WINDOWS API函数,但现在目前手头查不到,有谁能给出来吗?(给50分)<br><br>不用这个API函数有别的办法吗?(给100分)<br>
因为程序的需要,我想让文本框的scrollbars始终保持在最下端<br><br>我记得有个控制卷屏的WINDOWS API函数,但现在目前手头查不到,有谁能给出来吗?(给50分)<br><br>不用这个API函数有别的办法吗?(给100分)<br>
W wangxd Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-30 #2 函数没有,可以发消息卷屏,以下是卷一行<br>SendMessage(RichEdit1->Handle,WM_VSCROLL,SB_LINEDOWN, 0);<br>SendMessage(RichEdit1->Handle,WM_VSCROLL,SB_ENDSCROLL,0);
函数没有,可以发消息卷屏,以下是卷一行<br>SendMessage(RichEdit1->Handle,WM_VSCROLL,SB_LINEDOWN, 0);<br>SendMessage(RichEdit1->Handle,WM_VSCROLL,SB_ENDSCROLL,0);
D Dale46 Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-30 #3 //auto scrool<br> RichEdit1.SelLength := 0;<br> currentline := Richedit1.Perform(EM_LINEFROMCHAR, Richedit1.SelStart, 0 );<br> Richedit1.SelStart := richEdit1.perform( EM_LINEINDEX, currentline+1, 0 );<br> RichEdit1.Perform( EM_SCROLLCARET, 0, 0 );
//auto scrool<br> RichEdit1.SelLength := 0;<br> currentline := Richedit1.Perform(EM_LINEFROMCHAR, Richedit1.SelStart, 0 );<br> Richedit1.SelStart := richEdit1.perform( EM_LINEINDEX, currentline+1, 0 );<br> RichEdit1.Perform( EM_SCROLLCARET, 0, 0 );