EM_FILELINEFROMCHAR message
Gets the index of the line that contains the specified character index in a multiline edit control, independently of how lines are displayed on the screen. A character index is the zero-based index of the character from the beginning of the edit control.
Parameters
-
wParam
-
The character index of the character contained in the line whose number is to be retrieved. If this parameter is -1, EM_FILELINEFROMCHAR retrieves either the line number of the current line (the line containing the caret) or, if there is a selection, the line number of the line containing the beginning of the selection.
-
lParam
-
This parameter is not used.
Return value
The return value is the zero-based line number of the line containing the character index specified by wParam, independently of how lines are displayed on the screen.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 10, 1809 [desktop apps only] |
Minimum supported server |
Windows Server 2019 [desktop apps only] |
Header |
|
See also
-
Reference