Then again, you don't HAVE to recurse if you are just looking for the text.
In the callback, you can query the window class of the passed 'hWnd' (GetClassName() ; if it's "systab32" (or whatever the exact name is), you can query the number of tabs and get the 'tab text', or even start another child enumeration to find all the children of that tab control.
Fior that matter, you can query for windows of class "button" and just ignore anything which is not a button.
Or check to see if this button is a child of some specific target window or control (GetParent()).
Depends how 'generic' or 'application-specific' you want to be. Lots of options if you just use the "Enum" functions.
In the callback, you can query the window class of the passed 'hWnd' (GetClassName() ; if it's "systab32" (or whatever the exact name is), you can query the number of tabs and get the 'tab text', or even start another child enumeration to find all the children of that tab control.
Fior that matter, you can query for windows of class "button" and just ignore anything which is not a button.
Or check to see if this button is a child of some specific target window or control (GetParent()).
Depends how 'generic' or 'application-specific' you want to be. Lots of options if you just use the "Enum" functions.
Comment