The EnumChildProc function is an application-defined callback function that receives child window handles as a result of a call to the EnumChildWindows function.
BOOL CALLBACK EnumChildProc(
HWND hwnd, | // handle to child window |
LPARAM lParam | // application-defined value |
); |
Parameters
hwnd
Identifies a child window of the parent window specified in EnumChildWindows.
lParam
Specifies the application-defined value given in EnumChildWindows.
Return Values
To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.
Remarks
The callback function can carry out any desired task.
An application must register this callback function by passing its address to EnumChildWindows. EnumChildProc is a placeholder for the application-defined function name.
See Also