Rediger

Del via


EM_SCROLL message

Scrolls the text vertically in a multiline edit control. This message is equivalent to sending a WM_VSCROLL message to the edit control. You can send this message to either an edit control or a rich edit control.

Parameters

wParam

The action the scroll bar is to take. This parameter can be one of the following values.

Value Meaning
SB_LINEDOWN
Scrolls down one line.
SB_LINEUP
Scrolls up one line.
SB_PAGEDOWN
Scrolls down one page.
SB_PAGEUP
Scrolls up one page.

lParam

This parameter is not used.

Return value

If the message is successful, the HIWORD of the return value is TRUE, and the LOWORD 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 the wParam parameter specifies an invalid value, the return value is FALSE.

Remarks

To scroll to a specific line or character position, use the EM_LINESCROLL message. To scroll the caret into view, use the EM_SCROLLCARET message.

Rich Edit: Supported in Microsoft Rich Edit 1.0 and later. For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

EM_LINESCROLL

EM_SCROLLCARET

WM_VSCROLL