SystemParametersInfo() private méthode

private SystemParametersInfo ( uint uiAction, uint uiParam, RECT &pvParam, uint fWinIni ) : bool
uiAction uint
uiParam uint
pvParam RECT
fWinIni uint
Résultat bool
Exemple #1
0
        /// <summary>
        /// Resizes the Desktop area to our shells' requirements
        /// </summary>
        public static void MakeNewDesktopArea()
        {
            // Save current Working Area size
            m_rcOldDesktopRect.left   = SystemInformation.WorkingArea.Left;
            m_rcOldDesktopRect.top    = SystemInformation.WorkingArea.Top;
            m_rcOldDesktopRect.right  = SystemInformation.WorkingArea.Right;
            m_rcOldDesktopRect.bottom = SystemInformation.WorkingArea.Bottom;

            // Make a new Workspace
            WinAPI.RECT rc;
            rc.left   = SystemInformation.VirtualScreen.Left;
            rc.top    = SystemInformation.VirtualScreen.Top + 24;          // We reserve the 24 pixels on top for our taskbar
            rc.right  = SystemInformation.VirtualScreen.Right;
            rc.bottom = SystemInformation.VirtualScreen.Bottom;
            WinAPI.SystemParametersInfo((int)WinAPI.SPI.SPI_SETWORKAREA, 0, ref rc, 0);
        }
Exemple #2
0
 /// <summary>
 /// Restores the Desktop area
 /// </summary>
 public static void RestoreDesktopArea()
 {
     WinAPI.SystemParametersInfo((int)WinAPI.SPI.SPI_SETWORKAREA, 0, ref m_rcOldDesktopRect, 0);
 }