Partager via


CEdit::LineScroll

Call this function to scroll the text of a multiple-line edit control.

void LineScroll( 
   int nLines, 
   int nChars = 0  
);

Parameters

  • nLines
    Specifies the number of lines to scroll vertically.

  • nChars
    Specifies the number of character positions to scroll horizontally. This value is ignored if the edit control has either the ES_RIGHT or ES_CENTER style.

Remarks

This member function is processed only by multiple-line edit controls.

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

LineScroll can be used to scroll horizontally past the last character of any line.

For more information, see EM_LINESCROLL in the Windows SDK.

Example

See the example for CEdit::GetFirstVisibleLine.

Requirements

Header: afxwin.h

See Also

Reference

CEdit Class

Hierarchy Chart

CEdit::LineIndex