树型框任意子项拖动
系统结构:回调,句柄到索引,子项移动,SetCapture,SetWindowLong,CallWindowProc,ReleaseCapture,GetWindowLong,
======窗口程序集1
| |
| |------ _按钮新树_被单击
| |
| |------ _树型框1_鼠标位置被移动
| |
| |------ _树型框1_鼠标左键被放开
| |
| |------ __启动窗口_创建完毕
| |
| |------ 回调
| |
| |------ _树型框1_鼠标左键被按下
| |
| |------ 句柄到索引
| |
| |------ _按钮删除_被单击
| |
| |
======程序集1
| |
| |------ 子项移动
| |
| |
======调用的Dll
| |
| |---[dll]------ SetCapture
| |
| |---[dll]------ SetWindowLong
| |
| |---[dll]------ CallWindowProc
| |
| |---[dll]------ ReleaseCapture
| |
| |---[dll]------ GetWindowLong
调用的DLL命令:
.DLL命令 SetCapture, 整数型, , "SetCapture"
.参数 句柄, 整数型
.DLL命令 SetWindowLong, 整数型, , "SetWindowLongA"
.参数 hwnd, 整数型
.参数 nIndex, 整数型
.参数 dwNewLong, 整数型
.DLL命令 CallWindowProc, 整数型, , "CallWindowProcA"
.参数 lpPrevWndFunc, 整数型
.参数 hwnd, 整数型
.参数 Msg, 整数型
.参数 wParam, 整数型
.参数 lParam, 整数型
.DLL命令 ReleaseCapture, 整数型, , "ReleaseCapture"
.DLL命令 GetWindowLong, 整数型, , "GetWindowLongA"
.参数 句柄, 整数型
.参数 index, 整数型
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。