如何识别当前活动的组件 [英] How to identify currently active component

查看:52
本文介绍了如何识别当前活动的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想识别当前活动的组件,以通过端口显示传入的数据。当前活动组件是包含鼠标指针的任何组件,例如窗口文本框,Web文本框,记事本,MS Word等。

提前感谢.....

Hi All,
I want to identify currently active component to display incoming data through port. Currently active component is any component containing mouse pointer eg Window textbox, Web textbox, notepad, MS Word etc etc.
Thanks in advance.....

推荐答案

通过当前活动组件我认为你的意思是当前的前台应用程序(鼠标指针可以在任何应用程序上 - 它并不意味着应用程序具有焦点)。



如果是这样,那么试试此解决方案 [ ^ ]
By "currently active component" I take it you mean the current foreground application (The mousepointer can be over any application - it doesn't mean that the application has focus).

If so then try this solution[^]


这篇关于如何识别当前活动的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆