資源簡介
窗體淡出的功能實現
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Runtime.InteropServices;
using?System.Windows.Forms;
namespace?Utility
{
????///?
????///?base?form?class?that?provides?fading/sliding?effects?on?open/close?of?the?form.
????///?
????public?abstract?class?FadeForm?:?Form
????{
????????#region?Win32
????????const?int?AW_HIDE?=?0X10000;
????????const?int?AW_ACTIVATE?=?0X20000;
????????const?int?AW_HOR_POSITIVE?=?0X1;
????????const?int?AW_HOR_NEGATIVE?=?0X2;
????????const?int?AW_SLIDE?=?0X40000;
????????const?int?AW_BLEND?=?0X80000;
????????[DllImport(“user32.dll“?CharSet?=?CharSet.Auto)]
????????private?static?extern?int?AnimateWindow
????????(IntPtr?hwand?int?dwTime?int?dwFlags);
????????#endregion
????????#
- 上一篇:C#掃代理IP
- 下一篇:C#中調用VC++的DLL
評論
共有 條評論