Edit_LineFromChar macro

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

The zero-based index of the line.

Remarks

For more information, see EM_LINEFROMCHAR.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft