An application sends an EM_GETFIRSTVISIBLELINE message to determine the topmost visible line in an edit control.
wParam
This parameter is not used.
lParam
This parameter is not used.
The return value is the index of the topmost visible line. For single-line edit controls, the return value is zero.