CString m_FilePath; m_FilePath是文本框的绑定的变量 TCHAR szFilename[256] = {}; ::DragQueryFile(hDropInfo, 0, szFilename, 254);