From 0cfe7abb28a035636b1014dca28cb5db36f24002 Mon Sep 17 00:00:00 2001 From: Dwayne Robinson Date: Fri, 30 May 2025 14:13:02 -0700 Subject: [PATCH 1/2] Fix Edit_GetEndOfLine return value The `Edit_GetEndOfLine` macro returns a `EC_ENDOFLINE`, not `void`. ```c++ #define EM_GETENDOFLINE (ECM_FIRST + 13) #define Edit_GetEndOfLine(hwndCtl) \ (EC_ENDOFLINE)SNDMSG((hwndCtl), EM_GETENDOFLINE, 0, 0) ``` See the `EM_GETENDOFLINE` message for enum details https://learn.microsoft.com/en-us/windows/win32/controls/em-getendofline. --- .../commctrl/nf-commctrl-edit_getendofline.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md b/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md index aeea439735dd..41d2ff251adc 100644 --- a/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md +++ b/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md @@ -58,4 +58,14 @@ Gets the end of line character used for the content of the edit control. You can ### -param hwndCtl -A handle to the edit control. \ No newline at end of file +A handle to the edit control. + +## Return value + +Returns the end-of-line character used by the edit control, which can be one of the following **EC\_ENDOFLINE** 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).
| From e03a1c49854ee0aabdcdcc9e57309903f2f5aa5d Mon Sep 17 00:00:00 2001 From: Steven White <31261191+stevewhims@users.noreply.github.com> Date: Fri, 30 May 2025 15:36:34 -0700 Subject: [PATCH 2/2] Edit pass Admittedly, there are tens of thousands (maybe more) of markdown files stuffed with HTML (which we originally wanted to avoid, but failed). But even so, let's try not to put more HTML in markdown files if we can help it (which we can't always, but we can here). --- .../commctrl/nf-commctrl-edit_getendofline.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md b/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md index 41d2ff251adc..f2d583d55e38 100644 --- a/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md +++ b/sdk-api-src/content/commctrl/nf-commctrl-edit_getendofline.md @@ -45,13 +45,8 @@ api_name: - Edit_GetEndOfLine --- -# Edit_GetEndOfLine macro - - ## -description - - Gets the end of line character used for the content of the edit control. You can use this macro or send the EM_GETENDOFLINE message explicitly. ## -parameters @@ -62,10 +57,10 @@ A handle to the edit control. ## Return value -Returns the end-of-line character used by the edit control, which can be one of the following **EC\_ENDOFLINE** values: +Returns the end-of-line character used by the edit control, which can be one of the following **EC_ENDOFLINE** 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).
| +| 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). |