http://bugs.winehq.org/show_bug.cgi?id=24289
--- Comment #6 from Damjan Jovanovic damjan.jov@gmail.com 2010-09-10 14:48:36 CDT --- In the X -> JPEG -> Word 2003 case the following happens:
1. We send a WM_DROPFILES message, which Word apparently ignores since you say it doesn't accept the drop:
trace:xdnd:X11DRV_XDND_SendDropFiles Sending WM_DROPFILES: hWnd(0x0x1006a) 0x18ef94(L"Z:\data\graphics\opensuse_113_label.jpg"
2. Word then looks for numerous data formats.
3. The search either fails because Wine's XDnD only supports HGLOBAL medium types:
fixme:xdnd:XDNDDATAOBJECT_QueryGetData only HGLOBAL medium types supported right now
4. Or the search fails because Wine's XDnD doesn't support anything except files (CF_HDROP):
trace:xdnd:XDNDDATAOBJECT_QueryGetData (0x7e853c00, 0x33c348={.tymed=0x1, .dwAspect=1, .cfFormat=8} trace:xdnd:XDNDDATAOBJECT_QueryGetData application didn't find CF_DIB trace:xdnd:XDNDDATAOBJECT_QueryGetData (0x7e853c00, 0x33c348={.tymed=0x1, .dwAspect=1, .cfFormat=2} trace:xdnd:XDNDDATAOBJECT_QueryGetData application didn't find CF_BITMAP trace:xdnd:XDNDDATAOBJECT_QueryGetData (0x7e853c00, 0x33c348={.tymed=0x1, .dwAspect=1, .cfFormat=15}
5. Word eventually asks for the CF_DROP format we do support:
trace:xdnd:XDNDDATAOBJECT_QueryGetData application found CF_HDROP trace:xdnd:XDNDDATAOBJECT_GetData (0x7e853c00, 0x33d3ac, 0x33d394) trace:xdnd:XDNDDATAOBJECT_GetData application is looking for CF_HDROP trace:xdnd:XDNDDATAOBJECT_QueryGetData (0x7e853c00, 0x33d3ac={.tymed=0x1, .dwAspect=1, .cfFormat=15} trace:xdnd:XDNDDATAOBJECT_QueryGetData application found CF_HDROP trace:xdnd:X11DRV_XDND_DropEvent the application refused the drop
6. And it still mysteriously refuses the drop :-(
Maybe it needs a format other than CF_HDROP to also be present?
But file drag and drop works for foobar2000 and my own tests, so it's not a general bug.