ANIMATIONINFO

C# Definition:

/// <summary>
    /// ANIMATIONINFO specifies animation effects associated with user actions. 
    /// Used with SystemParametersInfo when SPI_GETANIMATION or SPI_SETANIMATION action is specified.
    /// </summary>
    /// <remark>
    /// The uiParam value must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)) when using this structure.
    /// </remark>
    [StructLayout(LayoutKind.Sequential)]
    public struct ANIMATIONINFO
    {
      /// <summary>
      /// Creates an AMINMATIONINFO structure.
      /// </summary>
      /// <param name="iMinAnimate">If non-zero and SPI_SETANIMATION is specified, enables minimize/restore animation.</param>
      public ANIMATIONINFO(System.Int32 iMinAnimate) 
      {
        this.cbSize = (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO));
        this.iMinAnimate = iMinAnimate;
      }

      /// <summary>
      /// Always must be set to (System.UInt32)Marshal.SizeOf(typeof(ANIMATIONINFO)).
      /// </summary>
      public System.UInt32 cbSize;

      /// <summary>
      /// If non-zero, minimize/restore animation is enabled, otherwise disabled.
      /// </summary>
      public System.Int32 iMinAnimate;
    }

VB Definition:

Structure ANIMATIONINFO 
   Public TODO
End Structure

Última actualización