粘贴<br>VB声明 <br>Declare Function EnumChildWindows Lib "user32" Alias "EnumChildWindows" (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long <br>说明 <br>为指定的父窗口枚举子窗口 <br>返回值 <br>Long,非零表示成功,零表示失败 <br>参数表 <br>参数 类型及说明 <br>hWndParent Long,欲枚举子窗口的父窗口的句柄 <br>lpEnumFunc Long,为每个子窗口调用的函数的指针。用AddressOf运算符获得函数在一个标准模块中的地址 <br>lParam Long,在枚举期间,传递给dwcbkd32.ocx定制控件之EnumWindows事件的值。这个值的含义是由程序员规定的。(原文:Value that is passed to the EnumWindows event of the dwcbkd32.ocx custom control during enumeration. The meaning of this value is defined by the programmer.) <br>注解 <br>在vb4下要求dwcbkd32.ocx定制控件。子窗口下属的子窗口也可由这个函数枚举<br> <br><br>