Drag link from Internet Explorer to Windows Application

190 Views Asked by At

I'm trying to implement dragging of link urls from webbrowsers to a Win32 application. It works fine using Firefox and Google Chrome, the link shows up as text in my IDataObject structure. But when dragging a link from Internet Explorer it seems to block it somehow.

Using the EnumFormatEtc and GetClipboardFormatName functions I can detect that the IDataObject contains three formats; UntrustedDragDrop, msSourceUrl and DragImageBits.

However, it seems I cant extract any data using IDataObject->QueryGetData(...) and IDataObject->GetData(...), I've tried using the corresponding enums to the formats.

Is dragging links out of internet explorer simply forbidden, or is it any way I can get around this and read the link?

0

There are 0 best solutions below