I want to talk to the application that was used just before my application, how can I find out which application had focus last?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Before creating your own application window, call GetForegroundWindow.
Otherwise call GetWindow(your_hwnd,GW_HWNDNEXT) to find the next window, below the specified.