csteinhilber
Programmer
I'm trying to include functionality in my app that allows the user to click on the window of a target (external) application to identify it (and behind the scenes, I'll determine the window class, executable path, etc).
I've seen other apps that do something similar. User clicks a button in the base app, cursor changes to a crosshair or whatever, user moves cursor to find external window of interest and clicks to register that application with the base app. The apps I've seen don't bring the target window forward or change the z-order layering at all, so I can't figure out how they're doing it (don't appear to be using FindFirstWindow, etc).
I have experience enumerating over open windows, etc... but I'm unsure how my base app can intercept a mouse click on an external window.
Any help would be appreciated.
Thanks in advance,
-Carl
I've seen other apps that do something similar. User clicks a button in the base app, cursor changes to a crosshair or whatever, user moves cursor to find external window of interest and clicks to register that application with the base app. The apps I've seen don't bring the target window forward or change the z-order layering at all, so I can't figure out how they're doing it (don't appear to be using FindFirstWindow, etc).
I have experience enumerating over open windows, etc... but I'm unsure how my base app can intercept a mouse click on an external window.
Any help would be appreciated.
Thanks in advance,
-Carl