VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Static Edge Controls Rock

Brandon Scott  (6 Submissions)   Custom Controls/Forms/Menus   Intermediate   Wed 3rd February 2021

Well, I wanted thin borders on my controls, because well, they just look cleaner then normal controls, and I didnt really feel like using XP styles, but this will make a program have a uniqie feel to it.

Inputs
The SetFlatControls takes in one param, and thats the form itself.

Assumes
Well, if your not using common controls in your project then you change the line that says "#Const USE_COMM_CTRLS_FLAT = True" to "#Const USE_COMM_CTRLS_FLAT = False". Otherwise it will have a compile error.

Side Effects
It makes alot of controls look cool?

API Declarations
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFLAGS As Long) As Long

Rate Static Edge Controls Rock (4(4 Vote))
Static Edge Controls Rock.bas

Static Edge Controls Rock Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters