回覆列表
  • 1 # 錢布斯

    Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags 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

    Const WS_EX_LAYERED = &H80000

    Const GWL_EXSTYLE = (-20)

    Const LWA_ALPHA = &H2

    Const LWA_COLORKEY = &H1

    Private Sub Form_Load()

    Me.BackColor = &H0

    SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_LAYERED

    SetLayeredWindowAttributes Me.hwnd, &H0, 255, LWA_ALPHA Or LWA_COLORKEY

    End Sub

  • 中秋節和大豐收的關聯?
  • 過年了,牛肉價格會不會漲?