Help Center

CRichEdit.LineScrollmethod

Scrolls the text in a multiline rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION LineScroll (BYVAL hRichEdit AS HWND, BYVAL y AS LONG) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
yThe number of lines to scroll vertically.

Return value

TRUE or FALSE.

Description

Scrolls the text in a multiline rich edit control.

Remarks

The 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 y 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.

Reference

  • Defined in AfxNova/CRichEdit.inc:857
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class