VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Makes the Form's Back Color to make a gradient fill (From color to color, vertically).

Pooboos 1100  (1 Submission)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Sun 6th April 2003   Mon 8th February 2021

Makes the Form's Back Color to make a gradient fill (From color to color, vertically).

API Declarations


x As Long
y As Long
Red As Integer
Green As Integer
Blue As Integer
Alpha As Integer
End Type
Private Type GRADIENT_RECT
UpperLeft As Long
LowerRight As Long
End Type

Const GRADIENT_FILL_RECT_H As Long = &H0
Const GRADIENT_FILL_RECT_V As Long = &H1
Const GRADIENT_FILL_TRIANGLE As Long = &H2
Const GRADIENT_FILL_OP_FLAG As Long = &HFF

Private Declare Function GradientFillRect Lib "msimg32" Alias "GradientFill" (ByVal hdc As Long, pVertex As TRIVERTEX, ByVal dwNumVertex As Long, pMesh As GRADIENT_RECT, ByVal dwNumMesh As Long, ByVal dwMode As Long) As Long
Private Function LongToUShort(Unsigned As Long) As Integer
LongToUShort = CInt(Unsigned - &H10000)
End Function



Rate Makes the Form's Back Color to make a gradient fill (From color to color, vertically). (1(1 Vote))
Makes the Form's Back Color to make a gradient fill (From color to color, vertically)..bas

Makes the Form's Back Color to make a gradient fill (From color to color, vertically). Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters