易语言离不开拖放模块源码
系统结构:允许拖放,禁止拖放,WindowProc,DropFiles,存在位置,CallWindowProc,CallWindowProc2,DragAcceptFiles,DragQueryFile,DragFinish,SetWindowLong2,
======程序集1
| |
| |------ _启动子程序
| |
| |------ _临时子程序
| |
| |
======文件拖放
| |
| |------ 允许拖放
| |
| |------ 禁止拖放
| |
| |------ WindowProc
| |
| |------ DropFiles
| |
| |------ 存在位置
| |
| |
======调用的Dll
| |
| |---[dll]------ CallWindowProc
| |
| |---[dll]------ CallWindowProc2
| |
| |---[dll]------ DragAcceptFiles
| |
| |---[dll]------ DragQueryFile
| |
| |---[dll]------ DragFinish
| |
| |---[dll]------ SetWindowLong2
调用的DLL命令:
.DLL命令 CallWindowProc, 整数型, "user32.dll", "CallWindowProcA"
.参数 lpPrevWndFunc, 子程序指针
.参数 hWnd, 整数型
.参数 Msg, 整数型
.参数 wParam, 整数型
.参数 lParam, 整数型
.DLL命令 CallWindowProc2, 整数型, "user32.dll", "CallWindowProcA"
.参数 lpPrevWndFunc, 子程序指针
.参数 总文件数量, 整数型
.参数 当前是第几个文件, 整数型
.参数 当前文件名, 文本型
.参数 当前文件后缀, 文本型
.DLL命令 DragAcceptFiles, 整数型, "shell32.dll", "DragAcceptFiles"
.参数 hwnd, 整数型
.参数 fAccept, 整数型
.DLL命令 DragQueryFile, 整数型, "shell32.dll", "DragQueryFileA"
.参数 hDrop, 整数型
.参数 iFile, 整数型
.参数 lpszFile, 文本型
.参数 cch, 整数型
.DLL命令 DragFinish, 整数型, "shell32.dll", "DragFinish"
.参数 hDrop, 整数型
.DLL命令 SetWindowLong2, 子程序指针, "user32.dll", "SetWindowLongA"
.参数 hwnd, 整数型
.参数 nIndex, 整数型
.参数 dwNewLong, 子程序指针
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。