VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add drop shadows to forms (XP only)

vcv  (16 Submissions)   Graphics   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Adds a drop shadow to any hWnd you specify, just like you see in OfficeXP menus.

Inputs
hWnd: handle of the window to add drop shadow to.

Assumes
Only works on Windows XP.

API Declarations
Public Declare Function GetClassLong Lib "user32" Alias "GetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare Function SetClassLong Lib "user32" Alias "SetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Const CS_DROPSHADOW = &H20000
Public Const GCL_STYLE = (-26)

Rate Add drop shadows to forms (XP only) (9(9 Vote))
Add drop shadows to forms (XP only).bas

Add drop shadows to forms (XP only) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters