EnumChildProc Function

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.

Syntax

BOOL CALLBACK EnumChildProc(      
    HWND hwnd,     LPARAM lParam );

Parameters

hwnd
[in] Handle to a child window of the parent window specified in EnumChildWindows.
lParam
[in] Specifies the application-defined value given in EnumChildWindows.

Return Value

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.

Function Information

HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systems Windows 95, Windows NT 3.1

See Also

Tags :


Community Content

Noelle Mallory - MSFT
Possible VB9 signature
Friend Delegate Function EnumWindowsProc(ByVal hWnd As Integer, ByVal lParam As Integer) As Boolean

Page view tracker