回复 1# 风行者 $dll = DllOpen(@TempDir &"\mySkin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)使用以上代码加载了皮肤后,去除关闭按钮不生效,请教如何解决。SHE皮肤#include <WindowsConstants.au3>
Const $SC_CLOSE = 0xF060
Const $MF_BYCOMMAND = 0x00000000
Const $MF_GRAYED = 0x00000001
$Form = GUICreate("关闭按钮不可用")
; EnableMenultem(GetSystemMenu(hwnd,FALSE),SC_CLOSE,MF_BYCOMMAND I MF_GRAYED);
$HWND = DllCall("User32.dll","HANDLE","GetSystemMenu","HWND",$Form,"BOOL",False) ;得到菜单句柄
DllCall("User32.dll","BOOL","EnableMenuItem","HANDLE",$HWND,"UINT",$SC_CLOSE,"UINT",BitOR($MF_BYCOMMAND,$MF_GRAYED))
GUISetState()
Do
Until GUIGetMsg() = -3
回复 79# 半芯竹
改用这个代码可以解决这个问题
$dll = DllOpen(@TempDir &"\mySkin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)
Const $SC_CLOSE = 0xF060
Const $MF_REMOVE = 0x01000
$Form = GUICreate("关闭按钮不可用")
$HWND = DllCall("User32.dll","HANDLE","GetSystemMenu","HWND",$Form,"BOOL",False) ;得到菜单句柄
DllCall("User32.dll","bool","RemoveMenu","handle",$HWND,"uint",$SC_CLOSE,"uint",$MF_REMOVE)
GUISetState()
Do
Until GUIGetMsg() = -3
非常感谢, 这些例子真的很好! 非常感谢, 这些例子真的很好! 感谢楼主分享…… 这个非常棒,感谢! 这个很好,要是能把编辑器里窗口样式全汉化就最好了 回复 1# 风行者
收藏学习之,感谢风大侠! 讲解的非常到位! 实用,简单明了。
支持!
顶起来,受教了,http://www.pgpop.com/image/face1.gif支持支持http://qb.lqualyn.com/images/sigline.gif
杭州防辐射服网上有卖吗 谢谢分享,很实用。 全部收藏了.很好的学习例子