- 生肖
- 猴
- 星座
- 处女座
- 性别
- 男
- 积分
- 680
- 积分
- 1161
- 精华
- 1
- 阅读权限
- 70
- 注册时间
- 2012-5-3
- 最后登录
- 2016-9-22
- 帖子
- 136
- 生肖
- 猴
- 星座
- 处女座
- 性别
- 男
|
本帖最后由 sky_yx 于 2015-12-30 14:22 编辑
- Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
- Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
- Const WS_EX_LAYERED = &H80000
- Const GWL_EXSTYLE = (-20)
- Const LWA_ALPHA = &H2
- 'Const LWA_COLORKEY = &H1
- Private Sub Form_Load()
- SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_LAYERED
- SetLayeredWindowAttributes Me.hwnd, 0, 150, LWA_ALPHA '150为透明度(0-255)
- End Sub
复制代码
|
|