The EnumChildProc function is an application-defined callback function used with the EnumChildWindows function. It receives the child window handles. The WNDENUMPROC type defines a pointer to this callback function. EnumChildProc is a placeholder for the application-defined function name.
BOOL CALLBACK EnumChildProc(
HWND hwnd, // handle to child window
LPARAM lParam // application-defined value
);
To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.
The callback function can carry out any desired task.
An application must register this callback function by passing its address to EnumChildWindows.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: User-defined.
Windows Overview, Window Functions, EnumChildWindows