You are on page 1of 2

#################Explicit Option

#If VBA7 then

'// 64 bit

Private Declare the PerSafe function FindWindow Lib "user32" Alias "Findwindow"
(ByVal lpClasslame As String, ByVal lpwindowlane As String) While

Private Declare PtrSafe Function GetWindow.ong Lib "user32" Alias "GetWindowLongA"


(ByVal hund As Long, ByVal nIndex As Long)

Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA"


(ByVal hund As Long, ByVal nIndex As Long, ByVal dulewLong As Long) As Long

Private Declare PtrSafe Function DrawMenuBar Lib "user32" (ByVal hed As Long)

Private Declare PerSafe Function SetlayeredindowAttributes Lib "user32" (ByVal hand


As Long, ByVal crikey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
-----------------------------------------------------------------------------------
--
#Sen�o

'// 32 bits
// Declara��es DLC puru alterar ou apar�ncia do deform Private Declare Function
DraMenubar Lib "user32" (ByVal hund As Long) As Long
Fun��o de declara��o privada Findleindow Lib "user32" Alias ??"FindWindowA" (ByVal
lpClassHame As String, ByVal lpwindowlame As String) Enquanto
Fun��o de declara��o privada GetWindowlong Lib "user32" Alias ??"GetWindowlongA"
(ByVal hund As Long, ByVal nIndex As Long) As Long
Fun��o de declara��o privada Setindooutong Lib "user32" Alias ??"SetWindowlong"
(ByVal hund As Long, ByVal nIndex As Long, ByVal lelong As Long) As Long
Private Declare Function SetLayeredwindowAttributes Lib "user32" (ByVal hund As
Long, ByVal crkey As Long, ByVal bAlpha As Byte, ByVal duFlags As Long) As Long
-----------------------------------------------------------------------------------
--
#End If

// Constantes windows para barra de titulo


Private Const GWL STYLE As Long = (-16)
Private Const GWL EXSTYLE As Long = (-20)
Private Const WS CAPTION As Long - SHC00000
Private Const WS_EX DLGMODAL FRAME As Long = &H1

W. Constantes windows pano transparencia


Private Const WS EX LAYERED - &H80000
Private Const LWA COLORKEY - SH1
Private Const LWA ALPHA- 8H2

Function HideTitleBarAndBordar (frm As Object)


-----------------------------------------------------------------------------------
-
Ativar formul�rio de sub-usu�rio privado()

HideTitleBarAndBordar Me
MakeUserformTransparent Me

Application.Visible = False
Finish Sub

https://www.designify.com/templates/fa40dc38-f3c4-4a3a-b8c2-0b1d08c05faf/edit?
iid=404c49bd-b662-40de-9c4a-5bf4b3a57b72
-----------------------------------------------------------------------------------
--
Private Sub UserForm_Initialize()

Me.Labe12.ForeColor RGB(4, 234, 165)

Me.Login2.ForeColor RGB(4, 234, 165)

End Sub

---------------------------------------------------------------------------
Private Sub UserForm_QueryClose(Cancel as integer,

Application.Visible = True

End Sub

You might also like