Drag-and-drop - treat shortcut/link to folder as folder itself

Share any ideas you have on improving Explorer++
Post Reply
Edgar5
Posts: 48
Joined: Sun Apr 02, 2017 7:22 am

Drag-and-drop - treat shortcut/link to folder as folder itself

Post by Edgar5 » Sun Jan 14, 2018 5:14 am

I've seen a couple of other posts which allude to this problem:
In Windows Explorer if I drag a file icon onto a shortcut-to-a-folder icon said file is copied/moved into the actual folder linked to by the shortcut. In Explorer++ if I perform the same drag operation the file fails to be moved/copied.

I spent the entire day yesterday pouring through the drag-and-drop code trying to figure out how to make a shortcut-to-a-folder a drop target so that it could receive icon drops - with absolutely no success. It seems impossible to single step through this code with the debugger.

Does anyone have any thoughts on this or special familiarity with this part of the CodeBase?
-Edgar5

Edgar5
Posts: 48
Joined: Sun Apr 02, 2017 7:22 am

Re: Drag-and-drop - treat shortcut/link to folder as folder itself

Post by Edgar5 » Sun Jan 14, 2018 8:25 am

After spending another day with this I finally got it working for links/shortcuts to folders.
-Edgar5

KJD
Posts: 1
Joined: Sun Apr 14, 2019 4:30 am

Re: Drag-and-drop - treat shortcut/link to folder as folder itself

Post by KJD » Mon Apr 15, 2019 2:55 pm

I also cannot drag a file to a shortcut.
Please tell how did you solve this?

Edgar5
Posts: 48
Joined: Sun Apr 02, 2017 7:22 am

Re: Drag-and-drop - treat shortcut/link to folder as folder itself

Post by Edgar5 » Mon Apr 22, 2019 1:08 am

It's been so long now I don't remember the exact details but it required considerable changes to the code. I started out with the 1.3.5 32-bit code base and have made MANY major changes for my personal version/use. As I went along I tried to keep track of the changes by commenting out the original code and adding a comment (at least describing the "why" - what I was trying to improve/accomplish) to any new code - at best I followed this convention 90% of the time <grin>. Each of these comments includes my initials (efm5) so searching for that string can find them all.

In April 2018 I zipped up my entire project and posted it to Dropbox:
https://www.dropbox.com/s/drug9d3fq7nl7 ... 5.zip?dl=0
I suppose I could do it again - it has been a year (although I have made relatively few changes in the last 12 months)! Let me know if anyone is interested…
-Edgar5

Post Reply