Example #1
0
        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);
        }
Example #2
0
        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 ) ;
		}