Rediger

Del via


EM_SETENDOFLINE message

Sets the end-of-line character used when a linebreak is inserted.

Parameters

wParam

Specifies the end-of-line character used when a linebreak is inserted. This can be one of the following values.

Value Meaning
EC_ENDOFLINE_DETECTFROMCONTENT
Sets the end-of-line character used for new linebreaks to the character used by the current document.
EC_ENDOFLINE_CRLF
Sets the end-of-line character used for new linebreaks to carriage return followed by linefeed (CRLF).
EC_ENDOFLINE_CR
Sets the end-of-line character used for new linebreaks to carriage return (CR).
EC_ENDOFLINE_LF
Sets the end-of-line character used for new linebreaks to linefeed (LF).

lParam

This parameter is not used.

Return value

If the operation succeeds, the return value is nonzero.

If the operation fails, the return value is zero.

Remarks

When the end-of-line character set is EC_ENDOFLINE_DETECTFROMCONTENT, the edit control will only detect end-of-line characters supported according to its extended window style, see Edit Control Extended Styles.

Requirements

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

See also

*EM_GETENDOFLINE