Edit_LineFromChar macro (windowsx.h)

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

Syntax

int Edit_LineFromChar(
   HWND hwndCtl,
   int  ich
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

ich

Type: int

The zero-based index of the character from the beginning of the text in the control.

Return value

Type: int

The zero-based index of the line.

Remarks

For more information, see EM_LINEFROMCHAR.

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