EM_LINESCROLL
wParam = 0; /* not used, must be zero */
lParam = MAKELPARAM(dv, dh); /* lines and characters to scroll */
An application sends an EM_LINESCROLL message to scroll the text of a multiline edit control.
This message is processed only by multiline edit controls.
dv
Value of the low-order word of lParam. Specifies the number of lines to scroll vertically.
dh
Value of the high-order word of lParam. Specifies the number of character positions to scroll horizontally. This value is ignored if the edit control has either the ES_RIGHT or ES_CENTER style.
The return value is nonzero if the message is sent to a multiline edit control, or it is zero if the message is sent to a single-line edit control.
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 the dv parameter 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.
The EM_LINESCROLL message can be used to scroll horizontally past the last character of any line.
This example sends an EM_LINESCROLL message to scroll the text in a multiline edit control vertically by five lines:
SendDlgItemMessage
(hdlg, ID_MYEDITCONTROL, EM_LINESCROLL, 0, MAKELONG(5, 0));