diff options
| author | Cecilio Pardo | 2024-09-27 23:58:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-08 16:13:24 +0300 |
| commit | 9af36e70f83d00eaef2255929e8aed7e1d3ed5b9 (patch) | |
| tree | 1262465c5a08b767e9e96f8498f2a583d0c13222 /src/coding.c | |
| parent | 339ffd79862c322f5b75fed1b55d61efe90bc7a1 (diff) | |
| download | emacs-9af36e70f83d00eaef2255929e8aed7e1d3ed5b9.tar.gz emacs-9af36e70f83d00eaef2255929e8aed7e1d3ed5b9.zip | |
Implement drag-n-drop for w32 with support for files and text
Implement drag-n-drop with IDropTarget for MS-Windows. This
allows for dropping files or text.
* lisp/term/w32-win.el (w32-drag-n-drop): Change to handle
files or strings.
* src/w32fns.c (process_dropfiles): New function to convert
DROPFILES struct to array of strings.
(w32_process_dnd_data): New function to process drop data.
(w32_try_get_data): Extract data from IDataObject.
(w32_createwindow): Assign an IDropTarget to each new frame.
(w32_name_of_message): New message.
(w32_msg_pump): Changed CoInitialize to OleInitialize, needed
by the drag-n-drop functions.
(w32_wnd_proc): New struct w32_drop_target, and
w32_drop_target_* functions to implement the IDropTarget
interface.
* src/w32term.c (w32_read_socket): Handle WM_EMACS_DROP and
remove WM_EMACS_DROPFILES.
* src/w32term.h: New message WM_EMACS_DROP.
(Bug#3468)
* etc/NEWS: Announce the new feature.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions