Edit_LineIndex macro (windowsx.h)

Gets the character index of the first character of a specified line in a multiline edit or rich edit control. You can use this macro or send the EM_LINEINDEX message explicitly.

Syntax

int Edit_LineIndex(
   HWND hwndCtl,
   int  line
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

line

Type: int

The zero-based line number. A value of –1 specifies the current line number (the line that contains the caret).

Return value

Type: int

The character index of the first character in the line, or –1 if the specified line number is greater than the number of lines in the edit control.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h