wrapper引入好之后,直接弄一个类,假设成为Animation
在窗体的load 和 closing事件发生的时候,直接调用Animation.AnimateWindow函数即可,简单容易。
代码如下:
using System.Runtime.InteropServices;
public class Animation
{
public const Int32 AW_HOR_POSITIVE = 0x00000001; // 从左到右打开窗口
public class Animation
{
public const Int32 AW_HOR_POSITIVE = 0x00000001; // 从左到右打开窗口