正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- ; firectrl.dll 为一个用于 Inno Setup 的 17.5 KB 的火焰特效插件。
- ; 需要注意,插件使用 MFC, 系统需要有 mfc42.dll,不过一般系统自带。
- [Setup]
- AppName=我的程序
- AppVerName=我的程序 版本 1.5
- DefaultDirName={pf}\我的程序
- DefaultGroupName=我的程序
- UninstallDisplayIcon={app}\MyProg.exe
- Compression=lzma
- OutputBaseFilename=INNO_Fire
- [Files]
- Source: "MyProg.exe"; DestDir: "{app}"
- Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
- Source: "firectrl.dll"; Flags: dontcopy
- Source: "WizModernImage-Is.bmp"; Flags: dontcopy
- [Icons]
- Name: "{group}\我的程序"; Filename: "{app}\MyProg.exe"
- [code]
- function enablefire(ParentWnd: HWND; Left, Top: integer; Bmp: HBITMAP;FireAlpha: integer): BOOL; external 'enablefire@files:firectrl.dll stdcall';
- //ParentWnd 放置特效窗口的父窗口句柄。
- //Left 特效窗口x位置
- //Top 特效窗口y位置
- //Bmp 位图句柄。
- //FireAlpha 火焰 Alpha 值 0~100,值越大,火焰更浓。
- //注意,火焰插件自动根据图片来设定高度和宽度,
- //另外火焰底图必须是翻转的图片,显示的时候会翻转图片来显示。
- function disablefire(): BOOL; external 'disablefire@files:firectrl.dll stdcall';
- //释放火焰插件
- var
- bmp: TBitmap;
- procedure InitializeWizard();
- begin
- ExtractTemporaryFile('WizModernImage-Is.bmp');
- bmp := TBitmap.create;
- bmp.LoadFromFile(ExpandConstant('{tmp}\WizModernImage-Is.bmp'));
- enablefire(WizardForm.WelcomePage.Handle, 0, 0, bmp.Handle, 50);
- end;
- procedure DeinitializeSetup();
- begin
- disablefire();
- bmp.Free;
- end;
复制代码
|