public static System.Collections.ArrayList Window_GetTopLevelWindows( ) { WindowEnumCollector collector = new WindowEnumCollector(); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback); WindowsAutomation.win32.EnumWindows(myCallBack, 0); return(collector.hwnds); }
public static System.Collections.ArrayList Window_GetChildWindows(int parent_hwnd) { WindowEnumCollector collector = new WindowEnumCollector(); 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); }
public static System.Collections.Generic.List <int> Window_FindChildWindowsEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id) { WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback); WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0); return(collector.hwnds); }
public static int Window_FindChildWindowEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id) { WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback); WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0); if (collector.hwnds.Count > 0) { return((int)collector.hwnds[0]); } else { return(0); } }
public static int Window_FindChildWindowEx( int parent , int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id ) { WindowCollectorEx collector = new WindowCollectorEx( parent, 0, wind_class, wind_text, wind_text_raw, 0 ); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback ); WindowsAutomation.win32.EnumChildWindows( parent, myCallBack , 0); if ( collector.hwnds.Count>0 ) { return (int) collector.hwnds[0]; } else { return 0; } }
public static System.Collections.Generic.List<int> Window_FindChildWindowsEx(int parent, int owner_id, string wind_class, string wind_text, string wind_text_raw, int control_id) { WindowCollectorEx collector = new WindowCollectorEx(parent, 0, wind_class, wind_text, wind_text_raw, 0); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack(collector.WindowEnumCallback); WindowsAutomation.win32.EnumChildWindows(parent, myCallBack, 0); return collector.hwnds; }
public static System.Collections.Generic.List<int> Window_GetChildWindows(int parent_hwnd) { WindowEnumCollector collector = new WindowEnumCollector(); 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_GetTopLevelWindows() { WindowEnumCollector collector = new WindowEnumCollector(); WindowsAutomation.win32.EnumWindowCallBack myCallBack = new WindowsAutomation.win32.EnumWindowCallBack( collector.WindowEnumCallback ); WindowsAutomation.win32.EnumWindows( myCallBack, 0 ); return ( collector.hwnds ) ; }
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 ) ; }