我知道哪个使用GetForegroundWindow函数我可以获得当前活动窗口句柄,但现在i want to detect when the active window (of any application) changes (become active).我想到的第一个解决方案是
GetForegroundWindow
i want to detect when the active window (of any application) changes (become active)
我想知道是否存在更好的方法来执行此操作可能使用Windows消息或其他东西.
delphi winapi
delphi ×1
winapi ×1