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.