# windows: Use a message-only window for \`WindowsPlatform\` \(\#37313\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2eb7ac97e031441330a3b50d6dc02c58431599ce)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2eb7ac97e031441330a3b50d6dc02c58431599ce

Requested commit: 2eb7ac97e031441330a3b50d6dc02c58431599ce

Commit: 2eb7ac97e031441330a3b50d6dc02c58431599ce

Tree: 34a4455cc44d723374293941d6f21a0bdd674eca

Author: 张小白

Committer: GitHub

## Message

```
windows: Use a message-only window for `WindowsPlatform` (#37313)

Previously, we were using `PostThreadMessage` to pass messages to
`WindowsPlatform`. This PR switches to an approach similar to `winit`
which using a hidden window as the message window (I guess that’s why
winit uses a hidden window?). The difference is that this PR creates it
as a message-only window.

Thanks to @reflectronic for the original PR #37255, this implementation
just fits better with the current code style.


Release Notes:

- N/A

---------

Co-authored-by: reflectronic <john-tur@outlook.com>
```

## Parents

- [f06c18765f2029c7824c99e3628c13b9bafb3979](https://git.cafe/gitcafe/zed/commit/f06c18765f2029c7824c99e3628c13b9bafb3979?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2eb7ac97e031441330a3b50d6dc02c58431599ce?format=markdown)
