聚焦到Windows的窗口,激活窗口获取键盘输入,不需要鼠标点击,C++接口,focus, active, foreground

情景
假设windows上开了2个窗口,分别叫WinA和WinB;
点击WinB后,WinA失去焦点,但我想让WinA获得焦点,获得键盘输入。
做法:
1、激活WinA
2、让WinA置于前面
3、聚焦到WinA
https://www.codeproject.com/Questions/351273/How-to-set-focus-to-owner-or-another-window
ue4怎么用:https://blog.csdn.net/qq_31042143/article/details/122226955

猜你喜欢

转载自blog.csdn.net/qq_40541268/article/details/127461944