文本自动平滑滚动(100分)

  • 主题发起人 主题发起人 skyone
  • 开始时间 开始时间
S

skyone

Unregistered / Unconfirmed
GUEST, unregistred user!
如何使Tmemo 或 Trichedit 中的文本自动平滑滚动,就象Readbook 中的那样,给出源码.txt
 
RichEdit1.Perform(EM_LINESCROLL, 0, 1);
// Memo1.Perform(EM_LINESCROLL, 0, 1);

EM_LINESCROLL
Edit controls: The EM_LINESCROLL message scrolls the text vertically or horizontally in a multiline edit control.

Rich edit controls: The EM_LINESCROLL message scrolls the text vertically in a multiline edit control.

EM_LINESCROLL
wParam = (WPARAM) cxScroll; // characters to scroll horizontally
lParam = (LPARAM) cyScroll; // lines to scroll vertically

Parameters
cxScroll
Edit controls: Value of wParam. Specifies the number of characters to scroll horizontally.
Rich edit controls: This parameter is not used; it must be zero.

cyScroll
Value of lParam. Specifies the number of lines to scroll vertically.
 
EM_LINESCROLL 好像不能平滑移动,
你可以使用timage,在上面输出文字。
 
接受答案了.
 
后退
顶部