杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1744|回复: 0

隐藏最大化和最小化范例

[复制链接]
发表于 2017-2-23 21:33:31 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. !define APPNAME "Remove MinimizeMaximize"
  2. name "${APPNAME}"
  3. outfile "$%temp%\${APPNAME}.exe"
  4. showInstDetails show
  5. !include MUI.nsh
  6. installdir "$Temp\NSIS-Test"

  7. Function myGUIInit  ;自定义界面Function 实现隐藏最大最小化的代码
  8.   System::Call 'user32::GetWindowLong(i $hwndparent,i -16)i.r0'
  9.   intop $1 0x30000 ~
  10.   intop $0 $0 & $1
  11.   System::Call 'user32::SetWindowLong(i $hwndparent,i -16,i $0)i' ;最大化不可用
  12. FunctionEnd

  13. !define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit  ;自定义界面

  14. Section "dummy"
  15. SetOutPath -
  16. SectionEnd

  17. !insertmacro MUI_PAGE_WELCOME
  18. !insertmacro MUI_PAGE_INSTFILES
  19. !insertmacro MUI_LANGUAGE "SimpChinese"
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 15:25 , Processed in 0.108059 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表