#ifndef _COMMON_DRAGQUERYFILE_HPP_ #define _COMMON_DRAGQUERYFILE_HPP_ #ifndef _COMMON_WINDOWS_HPP_ #include #endif #ifndef _COMMON_STRING_HPP_ #include #endif #ifndef _COMMON_BLOCK_HPP_ #include #endif class DragQueryFile { public: static bool getFileNames(HDROP hDrop,Block &strFileNames); private: }; inline bool DragQueryFile::getFileNames(HDROP hDrop,Block &strFileNames) { String strBuffer; UINT numFiles; strFileNames.remove(); strBuffer.reserve(512); if(0==hDrop)return false; numFiles=::DragQueryFile(hDrop,0xFFFFFFFF,0,0); if(!numFiles)return false; for(int index=0;index