为何setFocus对其他进程窗口无效?
来源:互联网 发布:免费直销软件 app 编辑:程序博客网 时间:2024/05/17 07:15
Windows created in different threads typically process input independently of each other. That is, they have their own input states (focus, active, capture windows, key state, queue status, and so on), and they are not synchronized with the input processing of other threads. By using the AttachThreadInput function, a thread can attach its input processing to another thread. This also allows threads to share their input states, so they can call the SetFocus function to set the keyboard focus to a window of a different thread. This also allows threads to get key-state information. These capabilities are not generally possible.
The AttachThreadInput function fails if either of the specified threads does not have a message queue. The system creates a thread's message queue when the thread makes its first call to one of the USER or GDI functions. The AttachThreadInput function also fails if a journal record hook is installed. Journal record hooks attach all input queues together.
Note that key state, which can be ascertained by calls to the GetKeyState or GetKeyboardState function, is reset after a call to AttachThreadInput. You cannot attach a thread to a thread in another desktop.
- 为何setFocus对其他进程窗口无效
- 为何setFocus对其他进程窗口无效?
- 进程通过消息控制其他进程窗口
- SetFocus()
- SetFocus
- SetFocus
- SetFocus
- alt+f4对命令行窗口无效
- c# 关闭其他程序窗口/进程
- C# 关闭其他程序窗口、进程
- C# 关闭其他程序窗口、进程
- vc mfc Edit SetFocus 设置焦点 无效 失败
- 研究Win32 GUI中SetActiveWindow与SetFocus和窗口消息
- VC 向其他进程窗口发送自定义消息
- 应用进程实现对其他应用程序的调用
- 通过向父亲窗口发送消息,要求其他窗口对其进行销毁
- 关于SetFocus
- SetCapture SetFocus
- sicily 1428
- java基础加强--要点总结2
- poj 2352 Stars
- second life下开发机械作业
- 为何setFocus对其他进程窗口无效
- 为何setFocus对其他进程窗口无效?
- makefile的一种写法
- {python31}class
- 感觉算法知识很欠缺
- ACCESS 数据类型解析
- GDI的简单操作
- 每日一得 11-03-16~11-03-20
- 地震震级
- properties