| 253 | } |
| 254 | |
| 255 | HRESULT DropHandler::CopyHDropData(IDataObject *pDataObject, |
| 256 | BOOL bPrefferedEffect,DWORD dwEffect) |
| 257 | { |
| 258 | STGMEDIUM stg; |
| 259 | HRESULT hr = pDataObject->GetData(&m_ftcHDrop,&stg); |
| 260 | |
| 261 | if(hr == S_OK) |
| 262 | { |
| 263 | auto hd = reinterpret_cast<HDROP>(GlobalLock(stg.hGlobal)); |
| 264 | |
| 265 | if(hd != NULL) |
| 266 | { |
| 267 | CopyDroppedFiles(hd,bPrefferedEffect,dwEffect); |
| 268 | GlobalUnlock(stg.hGlobal); |
| 269 | } |
| 270 | |
| 271 | ReleaseStgMedium(&stg); |
| 272 | } |
| 273 | |
| 274 | return hr; |
| 275 | } |
| 276 | |
| 277 | HRESULT DropHandler::CopyShellIDListData(IDataObject *pDataObject, |
| 278 | std::list<std::wstring> &PastedFileList) |