最新消息:

给nsis窗口添加立体阴影

nsis 永恒心锁 1710浏览 0评论
利用SetClassLong函数给nsis窗口添加了阴影,看起来很酷^_^
System::Call `user32::SetClassLong(i$HWNDPARENT,i${GCL_STYLE},i${CS_DROPSHADOW})`
SetClassLong
Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.
Note This function has been superseded by the SetClassLongPtrfunction. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetClassLongPtr.
SyntaxDWORD WINAPI SetClassLong( __in HWND hWnd, __in int nIndex, __in LONG dwNewLong);
#WriteBy:行者
Function .onGUIInit
;增加阴影
System::Call 'user32::GetClassLong(i,i) i ($HWNDPARENT,-26) .s'
Pop $R0
System::Call 'user32::SetClassLong(i,i,i) i ($HWNDPARENT,-26,$R0|0x20000) .s'
Pop $R0
FunctionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 给nsis窗口添加立体阴影

您必须 登录 才能发表评论!