public static bool BackWindow(IntPtr hwnd) { if (hwnd != IntPtr.Zero) { if (DLLInclude.SetWindowPos(hwnd, -1, 0, 0, 0, 0, 0x0080 | 0x0010)) { return(true); } } return(false); }
public static bool ForwardWindow(IntPtr hwnd) { if (hwnd != IntPtr.Zero) { DLLInclude.ShowWindow(hwnd, 1); DLLInclude.SetWindowPos(hwnd, -1, 0, 0, 0, 0, 1 | 2); DLLInclude.RECT rectHwnd; DLLInclude.GetWindowRect(hwnd, out rectHwnd); DLLInclude.MoveWindow(hwnd, 0, 0, rectHwnd.Right - rectHwnd.Left, rectHwnd.Bottom - rectHwnd.Top, true); } return(true); }