/// <summary> /// 为指定窗口设置新的父窗口。 /// </summary> /// <param name="hWnd">指定窗口。</param> /// <param name="hWndNewParent">新的父窗口。</param> public static void SetParent(IntPtr hWnd, IntPtr hWndNewParent) { UnsafeNativeMethods.SetParent(hWnd, hWndNewParent); }