Exemple #1
0
 /// <summary>
 /// 为指定窗口设置新的的所有者窗口。
 /// </summary>
 /// <param name="hWnd">指定窗口。</param>
 /// <param name="hWndNewOwner">新的所有者窗口。</param>
 public static void SetOwner(IntPtr hWnd, IntPtr hWndNewOwner)
 {
     UnsafeNativeMethods.SetWindowLong(hWnd, NativeMethods.GWL_HWNDPARENT, (int)hWndNewOwner);
 }