Exemplo n.º 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));
        }
Exemplo n.º 2
0
Arquivo: WinAPI.cs Projeto: antgraf/BA
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags gaFlags);
Exemplo n.º 3
0
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
Exemplo n.º 4
0
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
Exemplo n.º 5
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Exemplo n.º 6
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Exemplo n.º 7
0
 public static IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags)
 {
     return(NativeMethods.GetAncestor(hwnd, flags));
 }
Exemplo n.º 8
0
 private static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Exemplo n.º 9
0
 static extern IntPtr GetAncestor(HandleRef hWnd, GetAncestorFlags flags);
Exemplo n.º 10
0
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
Exemplo n.º 11
0
 public static extern IntPtr GetAncestor(IntPtr windowHandle, GetAncestorFlags gaFlags);
Exemplo n.º 12
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags); // hWnd를 포함하는 최상위 핸들을 얻어옵니다.
Exemplo n.º 13
0
 public static extern Hwnd GetAncestor(Hwnd hwnd, GetAncestorFlags flags);
Exemplo n.º 14
0
 private static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlag);
Exemplo n.º 15
0
 internal static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags flags);