/*
SkinnedButton是NSIS自定义按钮皮肤的插件
skinnedButton是按钮皮肤插件也可以改变按钮颜色
*/
!AddPluginDir "../../Plugins"
OutFile "SkinnedButton.exe"
Page components
Section "永恒心锁"
SectionEnd
Function .onInit
InitPluginsDir
File "/oname=$PLUGINSDIRbutton.bmp" "skinsmajestic.bmp"
FunctionEnd
Function .onGUIInit
skinnedbutton::skinit /NOUNLOAD "$PLUGINSDIRbutton.bmp"
Pop $0
StrCmp $0 "success" noerror
MessageBox MB_ICONEXCLAMATION|MB_OK "skinned button error: $0"
noerror:
FunctionEnd
Function .onGUIEnd
skinnedbutton::unskinit
FunctionEnd
© 版权声明
THE END
暂无评论内容