# windows: Use drop target helper \(\#33203\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a067c16c823354da63966273ac15d1aa93c0e922

Requested commit: a067c16c823354da63966273ac15d1aa93c0e922

Commit: a067c16c823354da63966273ac15d1aa93c0e922

Tree: 4e825f4284439296494dbd2551dd0cbb7e39c6fd

Author: Matin Aniss

Committer: GitHub

## Message

```
windows: Use drop target helper (#33203)

It now utilises the
[`IDropTargetHelper`](https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-idroptargethelper)
in drag and drop events to render the proper item drop cursor icon which
includes the thumbnail when available and action text. Also swaps the
drop effect from `DROPEFFECT_LINK` to `DROPEFFECT_COPY` to match other
Windows application behaviour.

Example of drop icon

![example_drop](https://github.com/user-attachments/assets/4f8ea86c-929a-4813-9f8e-b3553ecf4d6e)

Release Notes:

- N/A

---------

Co-authored-by: 张小白 <364772080@qq.com>
```

## Parents

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

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