[MFC] 对话框文件拖拽
来源:互联网 发布:com域名 编辑:程序博客网 时间:2024/09/21 06:38
1、对话框Accept Files设置为True
2、对话框添加WM_DROPFILES事件
3、OnDropFiles()实现如下:
void CAntiHashDlg::OnDropFiles(HDROP hDropInfo){int fileNum = DragQueryFile(hDropInfo,-1,NULL,0);for (int i=0; i<fileNum; i++){char filePath[100];DragQueryFile(hDropInfo,i,filePath,100);m_fileList.InsertItem(i,filePath);}DragFinish(hDropInfo);CDialog::OnDropFiles(hDropInfo);}这里是获取文件路径显示至List Control中
0 0
- [MFC] 对话框文件拖拽
- VS2012 MFC 对话框支持文件拖拽功能
- MFC打开文件对话框
- MFC 文件打开对话框
- MFC 文件选择对话框
- MFC对话框打开文件
- MFC打开文件对话框
- MFC打开文件对话框
- MFC打开文件对话框
- MFC打开文件对话框
- MFC 打开文件对话框
- MFC之文件对话框
- MFC打开文件对话框
- MFC 文件选择对话框
- MFC打开文件对话框
- MFC打开文件对话框
- MFC 打开文件对话框
- MFC打开文件对话框
- java集合类
- Java基础零碎知识
- 第三方登录之QQ登录集成(二)
- 二进制中1的个数——剑指offer
- java异常类处理
- [MFC] 对话框文件拖拽
- php://input的细节问题
- final finally finalize三者有什么区别
- AutoItLibrary封装上传文件
- 复管陶笛简介
- Android Manifest 节点和权限描述大全
- typeof运算符---JavaScript
- 全局将String 转换为Date格式
- PATB1046:划拳