Heres the pic of window hierarchy:
I need to get a window handle that is located in the branch shown with arrow. Trying to find it using FindWindowEx.
Notice that at the level marked with red line all branches have same class name and no caption, so I can't tell Windows to go down a specific branch, it just goes by first branch(I need 2nd).
Any clue how to solve this?
PS. No, just specifying top window and my target window in FindWindowEx doesn't work. Not even if there is just 1 branch in the whole hierarchy, let alone in this case. When I had one branch, I still had to go down level by level, finally getting the "smallest" child.