Beispiel #1
0
        /// <summary>
        /// Retrieves the handle to the ancestor of the specified window.
        /// </summary>
        /// <param name="window">A handle to the window whose ancestor is to be retrieved. If
        /// this parameter is the desktop window, the function returns null.</param>
        /// <param name="flags">The ancestor to be retrieved. This parameter can be any of
        /// the <see cref="GetAncestorFlags"/> flags.</param>
        /// <returns>The return value is the handle to the ancestor window.</returns>
        public static IWin32Window GetAncestor(IWin32Window window, GetAncestorFlags flags)
        {
            IntPtr result = NativeMethods.GetAncestor(window.Handle, flags);

            if (result == IntPtr.Zero)
            {
                return(null);
            }

            return(new Win32Window(result));
        }
Beispiel #2
0
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags gaFlags);
Beispiel #3
0
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
Beispiel #4
0
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
Beispiel #5
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Beispiel #6
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Beispiel #7
0
 public static IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags)
 {
     return(NativeMethods.GetAncestor(hwnd, flags));
 }
 private static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Beispiel #9
0
 static extern IntPtr GetAncestor(HandleRef hWnd, GetAncestorFlags flags);
Beispiel #10
0
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Beispiel #11
0
 public static extern IntPtr GetAncestor(IntPtr windowHandle, GetAncestorFlags gaFlags);
Beispiel #12
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags); // hWnd를 포함하는 최상위 핸들을 얻어옵니다.
Beispiel #13
0
 public static extern Hwnd GetAncestor(Hwnd hwnd, GetAncestorFlags flags);
Beispiel #14
0
 private static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlag);
 internal static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags flags);