Edit_GetFirstVisibleLine macro

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

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft