EM_LINEINDEX (Windows CE 5.0)

Send Feedback

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 Boxes Messages

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.