VB聲明 |
|
Declare Function EnumChildWindows Lib "user32" Alias "EnumChildWindows" (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long |
|
說(shuō)明 |
|
為指定的父窗口枚舉子窗口 |
|
返回值 |
|
Long,非零表示成功,零表示失敗 |
|
參數(shù)表 |
|
參數(shù) |
類型及說(shuō)明 |
hWndParent |
Long,欲枚舉子窗口的父窗口的句柄 |
lpEnumFunc |
Long,為每個(gè)子窗口調(diào)用的函數(shù)的指針。用AddressOf運(yùn)算符獲得函數(shù)在一個(gè)標(biāo)準(zhǔn)模塊中的地址 |
lParam |
Long,在枚舉期間,傳遞給dwcbkd32.ocx定制控件之EnumWindows事件的值。這個(gè)值的含義是由程序員規(guī)定的。(原文: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.) |
注解 |
|
在vb4下要求dwcbkd32.ocx定制控件。子窗口下屬的子窗口也可由這個(gè)函數(shù)枚舉 |