VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Set the transparency of a form and then back to normal again.

Big Al  (4 Submissions)   Windows API Call/Explanation   VB 6.0   Unknown Difficulty   Thu 2nd May 2002   Mon 8th February 2021

Set the transparency of a form and then back to normal again.

API Declarations



Private Const WS_EX_LAYERED = &H80000
Private Const GWL_EXSTYLE = (-20)
Private Const LWA_COLORKEY = &H1
Private Const LWA_ALPHA = &H2

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
(ByVal hwnd As Long, ByVal nIndex As Long) As Long
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 crColor As Long, ByVal nAlpha As Byte, ByVal dwFlags As Long) As Long

Rate Set the transparency of a form and then back to normal again. (1(1 Vote))
Set the transparency of a form and then back to normal again..bas

Set the transparency of a form and then back to normal again. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters