Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/Suggestion for IDropTargetHelper support #27

Open
darbid opened this issue Feb 19, 2019 · 0 comments
Open

Issue/Suggestion for IDropTargetHelper support #27

darbid opened this issue Feb 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@darbid
Copy link

darbid commented Feb 19, 2019

If I understand the purpose of this great Add-in to be to adjust the format of the IDataObject so that drop targets can recognize the format then I have a suggestion for further adjustment.

It appears that Outlook attachments are very unique in other ways too.

The IDropTargetHelper exposes methods that allow drop targets to display a drag image while the image is over the target window.. Here is also a walkthrough Part 1

It accepts an IDataObject for example on DragEnter and DragDrop, however if you drag an Outlook attachment to an application that implements the IDropTargetHelper then it complains that there is an invalid FORMATETC structure (Exception from HRESULT 0x80040064 (FV_E_FORMATETC).

I was hoping that your OutlookDataObject would make the adjustments but unfortunately it does not.

To reproduce simply Cut and Copy this code into a WinForms Project then drag an Outlook attachment onto that form.

Happy to help any way I can.

@tonyfederer tonyfederer added the enhancement New feature or request label Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants