/// <summary> /// Tests whether one window is a child of another /// </summary> /// <param name="parent">Parent window</param> /// <param name="window">Window to test</param> /// <returns></returns> public static bool IsChild(Win32Window parent, Win32Window window) { return IsChild(parent.window, window.window); }
private static bool EnumerateApplicationCallback(IntPtr pWindow, int i) { Win32Window window = new Win32Window(pWindow); if (window.Parent.window != IntPtr.Zero) return(true); if (window.Visible != true) return(true); if (window.Text == string.Empty) return(true); if (window.ClassName.Substring(0, 8) == "IDEOwner") return(true); // Skip invalid VS.Net 2003 windows applicationWindows.Add(window); return(true); }
/// <summary> /// Tests whether one window is a child of another /// </summary> /// <param name="parent">Parent window</param> /// <param name="window">Window to test</param> /// <returns></returns> public static bool IsChild(Win32Window parent, Win32Window window) { return(IsChild(parent.window, window.window)); }