Esempio n. 1
0
 public static IList <TreeNodeData> GetWindowsOrBelow(WindowCache wc, MainForm mf, Process proc, ProcessThread thread, bool visibleOnly)
 {
     if (mf.DisplayWindows > 0)
     {
         return(GetWindows(wc, mf, proc, thread, visibleOnly));
     }
     else
     {
         return(AccessibilityData.GetAccessibilityObjectsOrBelow(wc, mf, proc, thread, null, visibleOnly));
     }
 }
Esempio n. 2
0
 internal static bool HasWindowsOrBelow(WindowCache wc, MainForm mf, Process proc, ProcessThread thread, bool visibleOnly)
 {
     if (mf.DisplayWindows > 0)
     {
         if (proc == null)
         {
             return(true);
         }
         if (thread == null)
         {
             return(wc.WindowsByProcess(proc, visibleOnly).Count > 0);
         }
         return(wc.WindowsByThread(thread, visibleOnly).Count > 0);
     }
     else
     {
         return(AccessibilityData.HasAccessibilityObjectsOrBelow(wc, mf, proc, thread, null, visibleOnly));
     }
 }
Esempio n. 3
0
        internal override IList <TreeNodeData> GetChildren(WindowCache wc, bool visibleOnly)
        {
            List <TreeNodeData> result = new List <TreeNodeData>();

            if (mf.DisplayWindows == 2)
            {
                foreach (SystemWindow w in sw.AllChildWindows)
                {
                    if (!visibleOnly || w.Visible)
                    {
                        result.Add(new WindowData(mf, w));
                    }
                }
            }
            if (mf.DisplayAccObjs)
            {
                AccessibilityData.AddAccessibleObjects(result, mf, sw, visibleOnly);
            }
            return(result);
        }