static SetWindowPosOptions ClearUndefined(SetWindowPosOptions input) { SetWindowPosOptions retVal = 0; foreach (SetWindowPosOptions val in Enum.GetValues(typeof(SetWindowPosOptions))) { if ((input & val) == val) { retVal |= val; } } return retVal; }
static SetWindowPosOptions ClearUndefined(SetWindowPosOptions input) { SetWindowPosOptions retVal = 0; foreach (SetWindowPosOptions val in Enum.GetValues(typeof(SetWindowPosOptions))) { if ((input & val) == val) { retVal |= val; } } return(retVal); }
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosOptions flags);
/// <summary> /// Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. /// </summary> /// <param name="hWnd">A handle to the window.</param> /// <param name="hWndInsertAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the HWndValues.</param> /// <param name="x">The new position of the left side of the window, in client coordinates.</param> /// <param name="y">The new position of the top of the window, in client coordinates.</param> /// <param name="cx">The new width of the window, in pixels.</param> /// <param name="cy">The new height of the window, in pixels.</param> /// <param name="flags">The window sizing and positioning flags.</param> /// <returns></returns> public static bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosOptions flags) { return(NativeMethods.SetWindowPos(hWnd, hWndInsertAfter, x, y, cx, cy, flags)); }
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosOptions flags);
/// <summary> /// Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. /// </summary> /// <param name="hWnd">A handle to the window.</param> /// <param name="hWndInsertAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the HWndValues.</param> /// <param name="x">The new position of the left side of the window, in client coordinates.</param> /// <param name="y">The new position of the top of the window, in client coordinates.</param> /// <param name="cx">The new width of the window, in pixels.</param> /// <param name="cy">The new height of the window, in pixels.</param> /// <param name="flags">The window sizing and positioning flags.</param> /// <returns></returns> public static bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosOptions flags) { return NativeMethods.SetWindowPos(hWnd, hWndInsertAfter, x, y, cx, cy, flags); }
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hwndAfter, int x, int y, int width, int height, SetWindowPosOptions options);