Professional Documents
Culture Documents
'// 64 Bits
Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal
lpWindowName As String) As Long
Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal
nIndex As Long) As Long
Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal
nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare PtrSafe Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long
Private Declare PtrSafe Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long,
ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
#Else
'// 32 Bits
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal
lpWindowName As String) As Long
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 DrawMenuBar Lib "user32" (ByVal hwnd 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
#End If
Private Const GWL_EXSTYLE As Long = (-20) '//The offset of a window's extended style
Private Const LWA_COLORKEY = &H1 '//Chroma key for fading a certain color on your Form
Private Const LWA_ALPHA = &H2 '//Only needed if you want to fade the entire userform
'// Build window and set window until you remove the caption, title bar and frame around the window
'// Cria a janela e define a janela até remover a legenda, a barra de título e o quadro ao redor da janela
DrawMenuBar lFrmHdl
End Function
bytOpacity = 0
frm.BackColor = Color
End Function