Export (0) Print
Expand All

EM_LINEINDEX message

Gets the character index of the first character of a specified line in a multiline edit control. A character index is the zero-based index of the character from the beginning of the edit control. You can send this message to either an edit control or a rich edit control.

Parameters

wParam

The zero-based line number. A value of –1 specifies the current line number (the line that contains the caret).

lParam

This parameter is not used.

Return value

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

Remarks

Rich Edit: Supported in Microsoft Rich Edit 1.0 and later. For information about the compatibility of rich edit versions with the various system versions, see About Rich Edit Controls.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

EM_LINEFROMCHAR

 

 

Community Additions

ADD
Show:
© 2014 Microsoft