In WinApi, there is a message EM_GETFIRSTVISIBLELINE, which allows to get the first displayed line number for a multi-line edit control. There is no EM_SE
EM_GETFIRSTVISIBLELINE
EM_SE