EM_LINEINDEX

This message returns the number of character positions that occur preceding the first character in a given line.

Parameters

wParam

Specifies the desired line number, where the line number of the first line is zero. If the wParam parameter is -1, the current line number (the line that contains the caret) is used.

lParam

This parameter is not used.

Return Value

The return value is the number of character positions that precede the first character in the line.

Comments

This message will not be processed by single-line edit controls.