Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the index of the uppermost visible line in a multiline edit or rich edit control. You can use this macro or send the EM_GETFIRSTVISIBLELINE message explicitly.
Syntax
int Edit_GetFirstVisibleLine(
HWND hwndCtl
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
Return value
Type: int
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
For more information, see EM_GETFIRSTVISIBLELINE.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | windowsx.h |