資源簡介
酷炫關閉界面效果仿酷狗你值得擁有酷炫關閉界面效果仿酷狗你值得擁有酷炫關閉界面效果仿酷狗你值得擁有酷炫關閉界面效果仿酷狗你值得擁有

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Runtime.InteropServices;
using?System.Threading;
namespace?CartoonForm
{
????public?partial?class?Frm_Main?:?Form
????{
????????public?const?Int32?AW_HOR_POSITIVE?=?0x00000001;
????????public?const?Int32?AW_HOR_NEGATIVE?=?0x00000002;
????????public?const?Int32?AW_VER_POSITIVE?=?0x00000004;
????????public?const?Int32?AW_VER_NEGATIVE?=?0x00000008;
????????public?const?Int32?AW_CENTER?=?0x00000010;
????????public?const?Int32?AW_HIDE?=?0x00010000;
????????public?const?Int32?AW_ACTIVATE?=?0x00020000;
????????public?const?Int32?AW_SLIDE?=?0x00040000;
????????public?const?Int32?AW_BLEND?=?0x00080000;
????????static?int?x;
????????static?int?y;
????????static?int?WIDTH;
????????static?int?HEIGHT;
????????int?SH;
????????int?SW;
????????public?Frm_Main()
????????{
????????????InitializeComponent();
????????????//(句柄,毫秒時間,函數)
????????????AnimateWindow(this.Handle?100?AW_SLIDE?+?AW_VER_NEGATIVE);//開始窗體動畫
????????????x?=?this.Location.X;//窗體左上角x坐標
????????????y?=?this.Location.Y;//窗體左上角y坐標
????????????WIDTH?=?this.Width;//得到當前窗體的寬度
????????????HEIGHT?=?this.Height;//得到當前窗體的高度
????????????//得到屏幕的分辨率
????????????SH?=?Screen.PrimaryScreen.Bounds.Height;
????????????SW?=?Screen.PrimaryScreen.Bounds.Width;
????????}
????????//重寫API函數,用來執行窗體動畫顯示操作
????????[DllImportAttribute(“user32.dll“)]
????????private?static?extern?bool?AnimateWindow(IntPtr?hwnd?int?dwTime?int?dwFlags);
????????private?void?Form1_FormClosed(object?sender?FormClosedEventArgs?e)
????????{
????????????window();
????????}
????????//結束窗體時特效
????????private?void?window()
????????{
????????????while?(this.Width?>?124)
????????????{
????????????????if?(this.Height?>=?40)
????????????????{
????????????????????this.Location?=?new?System.Drawing.Point(x?y?+=?15);//設置窗體位置
????????????????????this.Size?=?new?Size(this.Width?this.Height?-=?25);//設置窗體大小
????????????????????this.Refresh();//重繪窗體
????????????????}
????????????????else
????????????????{
????????????????????this.Location?=?new?System.Drawing.Point(x?+=?15?y);
????????????????????if?(this.Width?>?123)
????????????????????{
????????????????????????this.Size?=?new?Size(this.Width?-=?25?this.Height);
????????????????????????this.Refresh();
????????????????????????this.Opacity?-=?0.04;//設置窗體透明度遞減
????????????????????}
????????????????}
????????????????Thread.Sleep(10);??//?線程休眠10毫秒
????????????}
????????}
????????//拖動窗體時動態獲得窗體的位置
????????private?void?Frm_Main_Move(object?sender?EventArgs?e)
????????{
????????????x?=?this.Location.X;
????????????y?=?this.Location.Y;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-07-01?14:47??仿酷狗打開關閉\
?????文件????????4199??2015-07-01?14:44??仿酷狗打開關閉\CartoonForm.csproj
?????文件?????????911??2011-12-06?10:37??仿酷狗打開關閉\CartoonForm.sln
?????文件???????25088??2011-12-06?14:33??仿酷狗打開關閉\CartoonForm.suo
?????文件???????48128??2015-07-01?14:47??仿酷狗打開關閉\CartoonForm.v12.suo
?????文件????????3079??2015-07-01?14:47??仿酷狗打開關閉\Frm_Main.cs
?????文件????????2642??2015-07-01?14:44??仿酷狗打開關閉\Frm_Main.designer.cs
?????文件????????5814??2015-07-01?14:44??仿酷狗打開關閉\Frm_Main.resx
?????文件?????????495??2010-07-03?13:21??仿酷狗打開關閉\Program.cs
?????目錄???????????0??2015-07-01?14:44??仿酷狗打開關閉\Properties\
?????文件????????1354??2010-05-21?14:24??仿酷狗打開關閉\Properties\AssemblyInfo.cs
?????文件????????3236??2015-07-01?14:44??仿酷狗打開關閉\Properties\Resources.Designer.cs
?????文件????????6203??2015-07-01?14:44??仿酷狗打開關閉\Properties\Resources.resx
?????文件????????1109??2011-12-06?10:37??仿酷狗打開關閉\Properties\Settings.Designer.cs
?????文件?????????249??2010-05-21?14:24??仿酷狗打開關閉\Properties\Settings.settings
?????目錄???????????0??2015-07-01?14:44??仿酷狗打開關閉\Resources\
?????文件???????36739??2015-07-01?14:44??仿酷狗打開關閉\Resources\degreetx.png
?????目錄???????????0??2011-12-06?10:37??仿酷狗打開關閉\bin\
?????目錄???????????0??2015-06-30?10:14??仿酷狗打開關閉\bin\Debug\
?????文件???????60928??2015-07-01?14:46??仿酷狗打開關閉\bin\Debug\CartoonForm.exe
?????文件???????30208??2015-07-01?14:46??仿酷狗打開關閉\bin\Debug\CartoonForm.pdb
?????文件???????14328??2010-07-03?13:21??仿酷狗打開關閉\bin\Debug\CartoonForm.vshost.exe
?????文件?????????490??2009-06-11?05:14??仿酷狗打開關閉\bin\Debug\CartoonForm.vshost.exe.manifest
?????目錄???????????0??2015-07-01?14:47??仿酷狗打開關閉\bin\Release\
?????目錄???????????0??2011-12-06?10:36??仿酷狗打開關閉\obj\
?????目錄???????????0??2015-07-01?14:46??仿酷狗打開關閉\obj\Debug\
?????文件?????????180??2010-05-21?14:37??仿酷狗打開關閉\obj\Debug\CartoonForm.Form1.resources
?????文件?????????180??2015-07-01?14:44??仿酷狗打開關閉\obj\Debug\CartoonForm.Frm_Main.resources
?????文件???????51276??2015-07-01?14:44??仿酷狗打開關閉\obj\Debug\CartoonForm.Properties.Resources.resources
?????文件????????3122??2015-06-30?10:15??仿酷狗打開關閉\obj\Debug\CartoonForm.csproj.FileListAbsolute.txt
?????文件?????????950??2015-07-01?14:44??仿酷狗打開關閉\obj\Debug\CartoonForm.csproj.GenerateResource.Cache
............此處省略11個文件信息
- 上一篇:神思SS628 100
- 下一篇:濤濤VIP3306第三版 3306全自動抓肉雞破解
評論
共有 條評論