Rediger

Del via


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

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)