EM_GETLINE

This message copies a line from the edit control.

The EM_GETLINE message may be used as either a wide-character message (where text arguments must use Unicode) or an ANSI message (where text arguments must use characters from the Windows 3.x character set installed).

Parameters

wParam

Specifies the line number of the line in the control, where the line number of the first line is zero.

lParam

Points to the buffer where the line will be stored. The first word of the buffer specifies the maximum number of characters to be copied to the buffer. The copied line is not null-terminated.

Return Value

The return value is the number of characters actually copied. This message is not processed by single-line edit controls.