public static void MakeNewDesktopArea() { m_rcOldDesktopRect.left = SystemInformation.WorkingArea.Left; m_rcOldDesktopRect.top = SystemInformation.WorkingArea.Top; m_rcOldDesktopRect.right = SystemInformation.WorkingArea.Right; m_rcOldDesktopRect.bottom = SystemInformation.WorkingArea.Bottom; WinAPI.RECT rc; rc.left = SystemInformation.VirtualScreen.Left; rc.top = SystemInformation.VirtualScreen.Top; rc.right = SystemInformation.VirtualScreen.Right; rc.bottom = SystemInformation.VirtualScreen.Bottom - 40; WinAPI.SystemParametersInfo((int)WinAPI.SPI.SPI_SETWORKAREA, 0, ref rc, 0); }
public static void RestoreDesktopArea() { WinAPI.SystemParametersInfo((int)WinAPI.SPI.SPI_SETWORKAREA, 0, ref m_rcOldDesktopRect, 0); }