Exemple #1
0
 /// <summary>
 /// 获取指定窗口的所有者窗口。
 /// </summary>
 /// <param name="hWnd">指定窗口。</param>
 /// <returns>所有者窗口。</returns>
 public static IntPtr GetOwner(IntPtr hWnd)
 {
     return(UnsafeNativeMethods.GetWindow(hWnd, NativeMethods.GW_OWNER));
 }