这个问题实在八月份逛csdn论坛的时候偶然遇到的,当时比較好奇楼主为啥要隐藏关闭button。就顺口问了下,结果楼主已经弃楼。未给出原因,猜着可能是为了做自己定义页面美化,无法改变按纽外观之类的,后来琢磨了下,认为改动窗体风格比較简单。这里使用的是GetWindowLong与 SetWindowLong两个API。

Function onGUIInit
  
System::Call 'user32::GetWindowLong(i$hwndparent
,i -16)i.r0'    
  
intop $1 0x80000
~
  
intop $0 $0&
$1
  
System::Call 'user32::SetWindowLong(i$hwndparent,i -16,i$0
)i'
FunctionEnd

效果图:

NSIS隐藏窗体标题栏自带的button(最大化,最小化,关闭X)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-05-27
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案