1 year ago
#380512
rsp
UWP WinRT: how to check if current app has focus
I have a UWP C++ WinRT app and I am trying to handle a click event. While doing it, I want to confirm whether the current application has the focus. I checked GetForegroundWindow but it seems due to security this API is not available in WinRT. So how can I check if the current app has focus?
uwp
c++-winrt
0 Answers
Your Answer