Page 1 of 1

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

Posted: Sun Jan 14, 2018 5:14 am
by Edgar5
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?

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

Posted: Sun Jan 14, 2018 8:25 am
by Edgar5
After spending another day with this I finally got it working for links/shortcuts to folders.

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

Posted: Mon Apr 15, 2019 2:55 pm
by KJD
I also cannot drag a file to a shortcut.
Please tell how did you solve this?

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

Posted: Mon Apr 22, 2019 1:08 am
by Edgar5
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…