EM_GETFIRSTVISIBLELINE message

Gets the zero-based index of the uppermost visible line in a multiline edit control. You can send this message to either an edit control or a rich edit control.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is the zero-based index of the uppermost visible line in a multiline edit control.

Edit controls: For single-line edit controls, the return value is the zero-based index of the first visible character.

Rich edit controls: For single-line rich edit controls, the return value is zero.

Remarks

The number of lines and the length of the lines in an edit control depend on the width of the control and the current Wordwrap setting.

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)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft