VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Semi transparent form 2000/XP

Kjhel  (1 Submission)   Custom Controls/Forms/Menus   Beginner   Wed 3rd February 2021

Your standard semi transparent form in Win 2000/XP without the flickering. Comes with fade-in effect.

Assumes
Must be running Win 2000 equivalent or better 1 form needed - copy everything onto it.

API Declarations
Option Explicit
'
' Constants
'
Private Const LWA_ALPHA As Long = &H2
Private Const WS_EX_LAYERED As Long = &H80000
Private Const GWL_EXSTYLE As Long = -20
Private Const SW_SHOW As Long = 5
Private Const RDW_UPDATENOW As Long = &H100
'
' Declarations
'
Private Declare Function RedrawWindow Lib "user32" (ByVal hwnd As Long, _
lprcUpdate As Any, _
ByVal hrgnUpdate As Long, _
ByVal fuRedraw 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 GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, _
ByVal nIndex 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
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

Rate Semi transparent form 2000/XP (7(7 Vote))
Semi transparent form 2000/XP.bas

Semi transparent form 2000/XP Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters