Method EnumChildWindows
EnumChildWindows(IntPtr, EnumChildProc, IntPtr)
The EnumChildWindows function enumerates the child windows that belong to the specified parent window by passing the handle of 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.
public static bool EnumChildWindows(IntPtr hwndParent, EnumChildProc lpEnumFunc, IntPtr lparam)
Parameters
hwndParent
IntPtrIdentifies the parent window whose child windows are to be enumerated.
lpEnumFunc
EnumChildProcPoints to an application-defined callback function.
lparam
IntPtrSpecifies a 32-bit, application-defined value to be passed to the callback function.
Returns
- bool
True if succeed; otherwise false.