Name

EnumChildWindows

Synopsis

Enumerates the child windows belonging to a specific parent window:

Public Declare Function EnumChildWindows Lib "user32" Alias "EnumChildWindows" _
		(ByVal hWndParent As Long, ByVal lpEnumFunc As Long, _
		ByVal lParam As Long) As Long

Parameters

hWndParent

The handle to the parent window whose child windows we want to enumerate

lpEnumFunc

A pointer to a callback function

lParam

Any other data that needs to be sent to the callback function

Return Value

Returns 0 if the function fails; any other value indicates success.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.