I am trying to implement a function when the contents of a Zip archive can be dragged from the Windows Explorer Explorer folder to my window. I have implemented all the necessary methods of IDropTarget, and everything works fine when I drag and drop regular files from Windows Explorer.
The problem occurs in the following method when I try to drag a file from a Zip folder:
HRESULT DragEnter(IDataObject* pDataObject, DWORD grfKeyState, POINTL pt, DWORD* pdwEffect)
{
static FORMATETC fmtetc_file = {CF_HDROP, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};
HRESULT hr = pDataObject->QueryGetData(&fmtetc_file);
if(hr == S_OK)
{
}
...
}
I get S_FALSE returned from QueryGetData ().
Does anyone know what I am missing?
ahmd0 source
share