vb 窗口半透明后老是闪动``
vb吧
全部回复
仅看楼主
level 6
cchcfei 楼主
Const LWA_COLORKEY = &H1 Const LWA_ALPHA = &H2 Const GWL_EXSTYLE = (-20) Const WS_EX_LAYERED = &H80000 Const WS_EX_TRANSPARENT As Long = &H20& Private Declare Fun百度ction GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long Private Declare Fun百度ction SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Fun百度ction SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Sub Form_Load() Dim Ret As Long Ret = GetWindowLong(Me.hWnd, GWL_EXSTYLE) Ret = Ret Or WS_EX_LAYERED Or WS_EX_TRANSPARENT SetWindowLong Me.hWnd, GWL_EXSTYLE, Ret 'Set the opacity of the layered window to 200 SetLayeredWindowAttributes Me.hWnd, 0, 200, LWA_ALPHA End Sub 作者: 31_Degree 2008-12-1 02:07   回复此发言 用了 31_Degree 这个后``老是闪动``不知道有没有办法让他不闪的~?~?我要覆盖在游戏上面的``
2008年12月01日 04点12分 1
level 15
解决不了,QQ透明都会闪,DX米办法,忽忽。。期待DX10能解决问题(没用过)
2008年12月02日 08点12分 2
level 13
你把下图的秤台当你的 游戏背景, 上面的小女孩就是 六张 .gif 以Timer控件连续播放, 闪都不闪.(背景透明度由0-255效果都一样)
2008年12月02日 10点12分 3
1