EM_SCROLL

An application sends an EM_SCROLL message to vertically scroll a multiple-line edit control. This message is equivalent to sending a WM_VSCROLL message to the edit control.

This message is only processed by multiple-line edit controls.

Parameters

wParam

Specifies the action the scroll-bar is to take. This parameter may be one of the following values:

Value Description

SB_LINEDOWN Scroll one line down.
SB_LINEUP Scroll one line up.
SB_PAGEDOWN Scroll one page down.
SB_PAGEUP Scroll one page up.

lParam

This parameter is not used.

Return Value

If the message is successful, the high-order word of the return value is TRUE and the low-order word is the number of lines that the command scrolls. The number returned may not be the same as the actual number of lines scrolled if the scrolling moves to the beginning or the end of the text. If an invalid command was passed in the wParam parameter, the return value is FALSE.

Comments

An application should use the EM_LINESCROLL message to scroll to a specific line or character position.

See Also

EM_LINESCROLL, WM_VSCROLL