|
|
|
Click here to copy the following block | Private Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, _ ByVal lParam As Long) As Long Private Declare Function EnumChildWindows Lib "user32" (ByVal hWndParent As _ Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Dim windows() As Long
Dim windowsCount As Long
Function ChildWindows(ByVal hWnd As Long) As Long() windowsCount = 0 If hWnd Then EnumChildWindows hWnd, AddressOf EnumWindows_CBK, 1 Else EnumWindows AddressOf EnumWindows_CBK, 1 End If ReDim Preserve windows(windowsCount) As Long ChildWindows = windows() End Function
Private Function EnumWindows_CBK(ByVal hWnd As Long, ByVal lParam As Long) As _ Long If windowsCount = 0 Then ReDim windows(100) As Long ElseIf windowsCount >= UBound(windows) Then ReDim Preserve windows(windowsCount + 100) As Long End If windowsCount = windowsCount + 1 windows(windowsCount) = hWnd EnumWindows_CBK = 1 End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
 |

|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|