User32EnumChildWindows(IntPtr, DelegatesEnumChildWindowsProc, IntPtr) Method

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(IntPtr, DelegatesEnumChildWindowsProc, IntPtr) continues until the last child window is enumerated or the callback function returns .

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool EnumChildWindows(
	IntPtr hWndParent,
	DelegatesEnumChildWindowsProc enumFunc,
	IntPtr lParam
)

Parameters

hWndParent  IntPtr
A handle to the parent window whose child windows are to be enumerated.

If this parameter is Zero, this function is equivalent to calling EnumWindows(DelegatesEnumWindowsProc, IntPtr) function.

enumFunc  DelegatesEnumChildWindowsProc
A pointer to an application-defined callback function.
lParam  IntPtr
An application-defined value to be passed to the callback function.

Return Value

Boolean
The return value is not used.

Remarks

See Also