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