EM_LINESCROLL

This message is sent by an application to scroll the text vertically or horizontally in a multiline edit control.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

EM_LINESCROLL wParam = (WPARAM) cxScroll;
lParam = (LPARAM) cyScroll;

Parameters

cxScroll

Specifies the number of characters to scroll horizontally.

cyScroll

Specifies the number of lines to scroll vertically.

Return Values

TRUE indicates that the message is sent to a multiline edit control. FALSE indicates that the message is sent to a single-line edit control.

Remarks

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 cyScroll 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.