コード例 #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));
        }
コード例 #2
0
ファイル: WinAPI.cs プロジェクト: antgraf/BA
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags gaFlags);
コード例 #3
0
ファイル: User32.cs プロジェクト: HSCHENGLL/pinvoke
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
コード例 #4
0
ファイル: User32.cs プロジェクト: AArnott/pinvoke
 public static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlags);
コード例 #5
0
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
コード例 #6
0
ファイル: Native.cs プロジェクト: duanbaodi/WGestures
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
コード例 #7
0
 public static IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags)
 {
     return(NativeMethods.GetAncestor(hwnd, flags));
 }
コード例 #8
0
 private static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
コード例 #9
0
 static extern IntPtr GetAncestor(HandleRef hWnd, GetAncestorFlags flags);
コード例 #10
0
ファイル: User32.cs プロジェクト: pawlos/ScreenToGif
 internal static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags);
コード例 #11
0
 public static extern IntPtr GetAncestor(IntPtr windowHandle, GetAncestorFlags gaFlags);
コード例 #12
0
ファイル: WinAPI.cs プロジェクト: 20chan/MyWaifu
 public static extern IntPtr GetAncestor(IntPtr hwnd, GetAncestorFlags flags); // hWnd를 포함하는 최상위 핸들을 얻어옵니다.
コード例 #13
0
ファイル: NativeMethods.cs プロジェクト: Egaros/lib
 public static extern Hwnd GetAncestor(Hwnd hwnd, GetAncestorFlags flags);
コード例 #14
0
 private static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags gaFlag);
コード例 #15
0
 internal static extern IntPtr GetAncestor(IntPtr hWnd, GetAncestorFlags flags);