forked from lee-soft/ViStart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GDIBrush.cls
37 lines (33 loc) · 930 Bytes
/
GDIBrush.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "GDIBrush"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Member0" ,"Colour"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Private m_Brush As Long
Public Property Let Colour(theColour As Long)
Constructor theColour
End Property
Public Property Get Value()
Value = m_Brush
End Property
Public Function Constructor(brushColour As Long)
Class_Terminate
m_Brush = CreateSolidBrush(brushColour)
End Function
Private Sub Class_Terminate()
If m_Brush <> 0 Then
DeleteObject ByVal m_Brush
m_Brush = 0
End If
End Sub