I am working on a project that requires getting trough tabs in a different application. I am using win32 api in order to access the handles in the other app. I managed to get my code to work, however it has a glitch. it turns out that when you use FindWindowEx() on the tab, it returns the first tab handle only. The way I got it to work is that I actually click the second tab only once end then the project runs flawless.
I used the Spy++ and when I looked at the 1st tab for the first time it shows no siblings(even though I have two more tabs), however when I click on the siblings and go back to the first tab and check again with spy++ it shows me the siblings. Therefore I can't use GetWindow(GW_HWNDNEXT) because it doesn't know it has a sibling until I click on the tab.
I am really trying to avoid using enumchildWindows() since I have no idea how it works, I've been trying to understand but I can hardly find examples, or a good explanation how to use it.
thank you in anticipation.