易语言取窗口焦点控件
系统结构:取输入焦点窗口句柄,取消绘画,绘画,GetFocus,GetForegroundWindow,GetWindowThreadProcessId,GetCurrentThreadId,AttachThreadInput,
======窗口程序集1
| |
| |------ __启动窗口_创建完毕
| |
| |------ _时钟1_周期事件
| |
| |------ 取输入焦点窗口句柄
| |
| |------ 取消绘画
| |
| |------ 绘画
| |
| |
======调用的Dll
| |
| |---[dll]------ GetFocus
| |
| |---[dll]------ GetForegroundWindow
| |
| |---[dll]------ GetWindowThreadProcessId
| |
| |---[dll]------ GetCurrentThreadId
| |
| |---[dll]------ AttachThreadInput
调用的DLL命令:
.DLL命令 GetFocus, 整数型, , "GetFocus"
.DLL命令 GetForegroundWindow, 整数型, , "GetForegroundWindow"
.DLL命令 GetWindowThreadProcessId, 整数型, , "GetWindowThreadProcessId"
.参数 Id
.参数 hwnd
.DLL命令 GetCurrentThreadId, 整数型, , "GetCurrentThreadId"
.DLL命令 AttachThreadInput, 整数型
.参数 欲连接线程的标识符
.参数 与idAttach线程连接的另一个线程的标识符
.参数 FALSE撤消连接
注:本站源码主要来源于网络收集。如有侵犯您的利益,请联系我们,我们将及时删除!
部分源码可能含有危险代码,(如关机、格式化磁盘等),请看清代码在运行。
由此产生的一切后果本站均不负责。源码仅用于学习使用,如需运用到商业场景请咨询原作者。
使用本站源码开发的产品均与本站无任何关系,请大家遵守国家相关法律。