c# WInform 窗口启动特效,使用win32 api一段使用api的窗口特效代码.自己可以试下,是不是在窗口显示的时候会显示各种特殊效果.有点惊喜的感觉
[System.Runtime.InteropServices.DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);
private const int AW_HOR_POSITIVE = 0x0001;//从左向右显示
private const int AW_HOR_NEGATIVE = 0x0002;//从右向左显示
private const int AW_VER_POSITIVE = 0x0004;//从上到下显示
private cons......
阅读全文