Upravit

Sdílet prostřednictvím


EM_GETENDOFLINE message

Retrieves the end-of-line character for an edit control. Send this message explicitly or by using the Edit_GetEndOfLine macro.

Parameters

wParam

Must be zero.

lParam

Must be zero.

Return value

Returns the end-of-line character used by the edit control. This can be one of the following values.

Value Meaning
EC_ENDOFLINE_CRLF
The end-of-line character used for new linebreaks is carriage return followed by linefeed (CRLF).
EC_ENDOFLINE_CR
The end-of-line character used for new linebreaks is carriage return (CR).
EC_ENDOFLINE_LF
The end-of-line character used for new linebreaks is linefeed (LF).

Remarks

When the end-of-line character used is set to EC_ENDOFLINE_DETECTFROMCONTENT using Edit_SetEndOfLine, this message will return the detected end-of-line character.

Requirements

Requirement Value
Minimum supported client
Windows 10, version 1809 [desktop apps only]
Minimum supported server
Windows Server 2019 [desktop apps only]
Header
Commctrl.h

See also

*EM_SETENDOFLINE