Пример #1
0
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
Пример #2
0
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
Пример #3
0
        /// <summary>
        /// Private helper method that indicates whether the user has Window Animation enabled.
        /// </summary>
        /// <returns>true if the user has Window Animation enabled. Otherwise returns false.</returns>
        private bool UseWindowAnimation()
        {
            ANIMATIONINFO animationInfo = new ANIMATIONINFO();

            animationInfo.cbSize = Marshal.SizeOf(animationInfo);

            Win32.SystemParametersInfo(Win32.SPI_GETANIMATION, animationInfo.cbSize,
                ref animationInfo, 0);

            bool animateMinimize = (animationInfo.iMinAnimate != 0);
            return animateMinimize;
        }