Hi John,
Just a quick message - no solution I fear... Just want to tell you what I found out (or not)...
The documentation for EnumerateChildWindow states:
Enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to an application-defined callback function. EnumChildWindows continues until the last child window is enumerated or the callback function returns FALSE
I suspect one (!) error is in the condition.
result = (list.Count == 0)
If I try your code without this condition to enumerate VisualStudio's child windows I get ~10 but with your condition only 2... On iexplore it doesn't work at all on my system - the callback seems to be never called... ??? Sorry I didn't find the time to find out what may be the problem on my system. (I also tested with the original code found at
)[
^] - same results - not any childwindow for iexplore is found...
Anyway I can't spot any mistake in your code (except the above condition which is I think just an "additional" error).
Kind regards
Johannes