隐藏最大化和最小化

!define APPNAME "Remove MinimizeMaximize"
name "${APPNAME}"
outfile "$%temp%${APPNAME}.exe"
showInstDetails show
!include MUI.nsh
installdir "$TempNSIS-Test"
Function myGUIInit ;自定义界面Function 实现隐藏最大最小化的代码
 System::Call 'user32::GetWindowLong(i $hwndparent,i -16)i.r0'
 intop $1 0x30000 ~
 intop $0 $0 & $1
 System::Call 'user32::SetWindowLong(i $hwndparent,i -16,i $0)i' ;最大化不可用
FunctionEnd
!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit ;自定义界面
Section "dummy"
SetOutPath -
SectionEnd
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容