Share via


EM_LINEINDEX

This message retrieves the character index of a line in a multiline edit control. The character index is the number of characters from the beginning of the edit control to the specified line.

EM_LINEINDEX 
  wParam = (WPARAM) line; 
  lParam = 0;

Parameters

  • line
    Specifies the zero-based line number. A value of –1 specifies the line number of the current line, which is the line that contains the caret.
  • lParam
    Not used; set to 0.

Return Values

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

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Windows.h.

See Also

EM_LINEFROMCHAR | Edit Box Messages

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.