win32gui.EnumChildWindows

EnumChildWindows(hwnd, callback, extra)

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.

Parameters

hwnd : PyHANDLE

The handle to the window to enumerate.

callback : object

A Python function to be used as the callback.

extra : object

Any python object - this is passed to the callback function as the second param (first is the hwnd).