Drag drop does not work on windows 7 and later
来源:互联网 发布:淘宝不能跟客服聊天 编辑:程序博客网 时间:2024/06/18 09:20
一旦把应用程序的UIAccess 属性设置为TRUE
<requestedExecutionLevel level="asInvoker" uiAccess="true" />
就收不到WM_DROPFILES消息了。。。。。。。
这是什么鬼?
首先我们想到了 这个应该是权限问题引发的血案,于是想到~
if (!ChangeWindowMessageFilterEx(hWnd, WM_DROPFILES, MSGFLT_ALLOW, NULL)) { MessageBox(NULL, _T("ChangeWindowMessageFilterEx Fail"), _T("ChangeWindowMessageFilterEx Fail"), MB_O
这回应该解决了吧?
并没有!!!!!!!!!!。。。。。。。。。。
WHY!!!
原来拖动过程 需要靠剪切板来传递数据,,
需要这样处理
if (!ChangeWindowMessageFilterEx(hWnd, WM_DROPFILES, MSGFLT_ALLOW, NULL)) { MessageBox(NULL, _T("ChangeWindowMessageFilterEx Fail"), _T("ChangeWindowMessageFilterEx Fail"), MB_OK); } if (!ChangeWindowMessageFilterEx(hWnd, WM_COPYDATA, MSGFLT_ALLOW, NULL)) { MessageBox(NULL, _T("ChangeWindowMessageFilterEx Fail"), _T("ChangeWindowMessageFilterEx Fail"), MB_OK); } if (!ChangeWindowMessageFilterEx(hWnd, 0x0049, MSGFLT_ALLOW, NULL)) { MessageBox(NULL, _T("ChangeWindowMessageFilterEx Fail"), _T("ChangeWindowMessageFilterEx Fail"), MB_OK); }
0 0
- Drag drop does not work on windows 7 and later
- Windows 7 User Account Control does not allow drag and drop
- implement drag and drop on android
- Drag and Drop on a DataGridView
- Drag and Drop
- 学习drag and drop
- 关于drag and drop
- html5 Drag and drop
- Ajax Drag and Drop
- QT5 drag and drop
- HTML5 Drag and Drop
- drag and drop学习
- android - Drag and Drop
- html5 Drag and Drop
- Qt Drag and Drop
- drag and drop(拖拽)
- Drag And Drop 进阶
- drag and drop 事件
- Android 实现 拍照测距 的APP
- Linux进程之alarm()信号传送闹钟函数
- 题目1027:欧拉回路 学习
- httpclient4.3.X post请求上传,将文件封装到请求体中(不以form表单形式)
- 【cocos2d-js官方文档】二十四、如何在android平台上使用js直接调用Java方法
- Drag drop does not work on windows 7 and later
- android studio下Maven管理android的库
- 移植u-boot到mini2440--从norflash启动
- java点滴:String字符串的替换函数:replace与replaceAll的区别
- 基于cookie实现ztree树刷新后,展开状态不变
- Powerdesigner中如何生成测试数据
- 内部类与匿名内部类的区别
- PubSub机制测试
- 开始写学习笔记啦。。。。