This message is sent by an application to retrieve 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.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
EM_LINEINDEX wParam = (WPARAM) line; lParam = 0;
Parameters
line
Specifies the zero-based line number. A value of –1 specifies the current line number (the line that contains the caret).
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.
See Also