Пример #1
0
 /// <summary>
 /// Sets the window position, z-order.
 /// </summary>
 /// <param name="handle">The window handle.</param>
 /// <param name="insertAfter">Z-Order flags</param>
 /// <param name="bounds">The new position and size.</param>
 /// <param name="flags">Options for showing the window.</param>
 /// <returns></returns>
 public static bool SetWindowPos(IWin32Window handle, WindowOrder insertAfter, Rectangle bounds, WindowPosition flags)
 {
     return(UnsafeNativeMethods.SetWindowPos(new HandleRef(handle, handle.Handle), new HandleRef(handle, new IntPtr((int)insertAfter)), bounds.X, bounds.Y, bounds.Width, bounds.Height, (int)flags));
 }
Пример #2
0
		/// <summary>
		/// Sets the window position, z-order.
		/// </summary>
		/// <param name="handle">The window handle.</param>
		/// <param name="insertAfter">Z-Order flags</param>
		/// <param name="bounds">The new position and size.</param>
		/// <param name="flags">Options for showing the window.</param>
		/// <returns></returns>
		public static bool SetWindowPos(IWin32Window handle, WindowOrder insertAfter, Rectangle bounds, WindowPosition flags)
		{
			return UnsafeNativeMethods.SetWindowPos(new HandleRef(handle, handle.Handle), new HandleRef(handle, new IntPtr((int)insertAfter)), bounds.X, bounds.Y, bounds.Width, bounds.Height, (int)flags);
		}