I know that WindowFromPoint can be used to get a handle to a control if that control is in a visible window. My requirement is to get control details, even if the application window is not in the foreground (it is not minimized, simply because it may be located behind another window). Is a WINAPI function available that can do this for me?
If not, can anyone suggest an approach to how I can do this, which is missing: 1. Listing all the controls in a specific background window, 2. then get their borders, 3. and then compare if these borders contain the x, y coordinate?
source
share