public static System.Collections.ArrayList Window_GetDirectChildWindows(int parent_hwnd) { WindowEnumCollectorWithParent collector = new WindowEnumCollectorWithParent(parent_hwnd); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback); WindowsAutomation.win32.EnumChildWindows(parent_hwnd, myCallBack, 0); return(collector.hwnds); }
public static System.Collections.Generic.List<int> Window_GetDirectChildWindows(int parent_hwnd) { WindowEnumCollectorWithParent collector = new WindowEnumCollectorWithParent( parent_hwnd ); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback ); WindowsAutomation.win32.EnumChildWindows( parent_hwnd, myCallBack , 0); return ( collector.hwnds ) ; }