I want to get the children of a particular IE instance to see if there are any popups.
I've made an .html page that pops up a window. The title of the popup is "Message from webpage", as it always is for this version of IE.
I can get the parent from the child window:
>>> child_handle = 15208472
>>> win32gui.GetWindowText(child_handle)
'Message from webpage'
>>> win32gui.GetParent(child_handle)
33230502
>>> parent_handle = 33230502
>>> win32gui.GetWindowText(parent_handle)
'pop-up example - Windows Internet Explorer'
However, it seems that i can't get the child window from the parent:
>>> def all_ok(hwnd, param): return True
>>> win32.EnumChildWindows(parent_handle, all_ok, None)
>>>
Why is this?