traversal child window of parent window

def get_child_windows(parent):
    if not parent:
        return

    hwndChildList = []
    gui.EnumChildWindows(parent, lambda hwnd, param: param.append(hwnd), hwndChildList)
    return hwndChildList
原文地址:https://www.cnblogs.com/otfsenter/p/6563971.html