EM_FILELINEINDEX message (CommCtrl.h)

Gets the character index of the first character of a specified line 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 zero-based line number. A value of -1 specifies the current line number (the line that contains the caret).

lParam

This parameter is not used.

Return value

The return value is the character index of the line specified in the wParam parameter, independently of how lines are displayed on the screen, or it is -1 if the specified line number is greater than the number of lines in the edit control.

Requirements

Requirement Value
Minimum supported client
Windows 10, 1809 [desktop apps only]
Minimum supported server
Windows Server 2019 [desktop apps only]
Header
CommCtrl.h

See also

EM_FILELINEFROMCHAR