cnjinhao / nana

a modern C++ GUI library
https://nana.acemind.cn
Boost Software License 1.0
2.3k stars 331 forks source link

Improved dragdrop #637

Closed ashbob999 closed 2 years ago

ashbob999 commented 2 years ago

These changes are for windows only. I did try to do it for linux as well, but it wasn't clear where to start, and the documentation for xdnd was lacking.

note-1: This removes an error caused by itself. Although sometimes when using visual studio 2019 with the debugger attached only, the program may either freeze or throw an error in native code.

note-2: This throws an error instead of allowing both to succeed, but with only one actually working. So it is more clear to the user.