コード例 #1
0
ファイル: Win32Window.cs プロジェクト: Andy-Yin/MY_OA_RM
 /// <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);
 }
コード例 #2
0
ファイル: Win32Window.cs プロジェクト: Andy-Yin/MY_OA_RM
        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);
        }
コード例 #3
0
 /// <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));
 }