EnumChildProc

2.x

  BOOL CALLBACK EnumChildProc(hwnd, lParam)    
  HWND hwnd; /* handle of child window */
  LPARAM lParam; /* application-defined value */

The EnumChildProc function is an application-defined callback function that receives child window handles as a result of a call to the EnumChildWindows function.

Parameters

hwnd

Identifies a child window of the parent window specified in the EnumChildWindows function.

lParam

Specifies the application-defined value specified in the EnumChildWindows function.

Return Value

The callback function must return nonzero to continue enumeration; to stop enumeration, it must return zero.

Comments

The callback function can carry out any desired task.

An application must register this callback function by passing its address to the EnumChildWindows function. The EnumChildProc function is a placeholder for the application-defined function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition (.DEF) file.

See Also

EnumChildWindows