| 子程序名 | 返回值类型 | 公开 | 备 注 | ||||
| 窗口_激活 | 整数型 | 若函数调用成功,则返回原先活动窗口的句柄。若函数调用失败,则返回值为NULL 。 | |||||
| 参数名 | 类 型 | 参考 | 可空 | 数组 | 备 注 | ||
| 窗口句柄 | 整数型 | 欲激活窗口的句柄 | |||||
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | ||
| 局_当前线程ID | 整数型 | |||||
| 局_目标线程ID | 整数型 | |||||
| 局_返回值 | 整数型 | |||||
局_目标线程ID = GetWindowThreadProcessId (窗口句柄, 0)
AttachThreadInput (局_目标线程ID, 局_当前线程ID, 真)
局_返回值 = SetActiveWindow (窗口句柄)
AttachThreadInput (局_目标线程ID, 局_当前线程ID, 假)
返回 (局_返回值)
词条作者信息 使用例程
