Skip to content

Conversation

@fdwr
Copy link
Contributor

@fdwr fdwr commented May 30, 2025

The Edit_GetEndOfLine macro actually returns a EC_ENDOFLINE, not void.

\Windows Kits\10\Include\10.0.26100.0\um\CommCtrl.h

#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.

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.
@prmerger-automator
Copy link

@fdwr : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

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).
@stevewhims stevewhims merged commit af616a0 into MicrosoftDocs:docs May 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants