给nsis窗口添加立体阴影

利用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);

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
© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容