Export (0) Print
Expand All

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.

ValueMeaning
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
EM_LINESCROLL
EM_SCROLLCARET
WM_VSCROLL

 

 

Community Additions

ADD
Show:
© 2014 Microsoft