線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1178
推到 Plurk!
推到 Facebook!

在RichEdits中自动滚动文本

尚未結案
wzpuma
一般會員


發表:10
回覆:19
積分:5
註冊:2003-02-27

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-05-10 16:57:43 IP:218.5.xxx.xxx 未訂閱
为在RichEdits中自动滚动文本,我用了如下代码: richedit1.perform (WM_VSCROLL,SB_LINEDOWN,speed); 但不管speed为任何integer(如0或3000都一样),滚动速度始终一样,为何?
timhuang
尊榮會員


發表:78
回覆:1815
積分:1608
註冊:2002-07-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-05-10 18:30:23 IP:61.221.xxx.xxx 未訂閱
若你是要捲的行數, 請試試:    SendMessage(Richedit1.Handle, EM_LINESCROLL, 0, 10);    最後的 10 是往下捲 10 行. 若為負值則為往上捲!    另外你使用的方式, 其中第三個參數是沒有用的, 應該不是捲動的速度... 請參考這篇:
wnhoo
高階會員


發表:75
回覆:443
積分:198
註冊:2003-04-22

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-05-11 09:49:03 IP:61.155.xxx.xxx 未訂閱
richedit1.perform (par1,par2,par3);    PAR1: WM_VSCROLL PAR2: SB_BOTTOM Scrolls to the lower right. SB_ENDSCROLL Ends scroll. SB_LINEDOWN Scrolls one line down. SB_LINEUP Scrolls one line up. SB_PAGEDOWN Scrolls one page down. SB_PAGEUP Scrolls one page up. SB_THUMBPOSITION The user has dragged the scroll box (thumb) and released the mouse button. The high-order word indicates the position of the scroll box at the end of the drag operation. SB_THUMBTRACK The user is dragging the scroll box. This message is sent repeatedly until the user releases the mouse button. The high-order word indicates the position that the scroll box has been dragged to. SB_TOP Scrolls to the upper left. PAR3 NOT USE!!!!! 风花雪月 e梦情缘
------
风花雪月 e梦情缘
系統時間:2024-05-16 20:00:45
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!