This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
/
frmMsgBox.frm
executable file
·171 lines (166 loc) · 5.71 KB
/
frmMsgBox.frm
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
VERSION 5.00
Begin VB.Form frmMsgBox
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 1710
ClientLeft = 0
ClientTop = 0
ClientWidth = 5190
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1710
ScaleWidth = 5190
ShowInTaskbar = 0 'False
StartUpPosition = 3 '´°¿Úȱʡ
Begin VB.Timer Timer1
Left = 3600
Top = 960
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Label1"
BeginProperty Font
Name = "ËÎÌå"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 615
Left = 1320
TabIndex = 0
Top = 360
Width = 3735
End
Begin VB.Image Image1
Height = 1695
Left = 0
Top = 0
Width = 5175
End
End
Attribute VB_Name = "frmMsgBox"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _
ByVal hWnd As Long, _
ByVal nIndex 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 SetLayeredWindowAttributes Lib "user32" ( _
ByVal hWnd As Long, _
ByVal crKey As Long, _
ByVal bAlpha As Byte, _
ByVal dwFlags As Long) As Long
Private 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
Private Const GWL_STYLE = (-16)
Private Const GWL_EXSTYLE = (-20)
Private Const WS_EX_LAYERED = &H80000
Private Const LWA_COLORKEY = &H1
Private Const LWA_ALPHA = &H2
Private Sub Form_Activate()
Timer1.Enabled = False
Me.BackColor = vbCyan
SetWindowLong Me.hWnd, GWL_EXSTYLE, GetWindowLong(Me.hWnd, GWL_EXSTYLE) Or WS_EX_LAYERED
SetLayeredWindowAttributes Me.hWnd, vbCyan, 0&, LWA_COLORKEY
SetWindowPos Me.hWnd, -1, 0, 0, 0, 0, 2 Or 1
DoEvents
If MsgBoxType = "SUCCESS" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(22)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "SUCCESS2" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(44)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "LOADING" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgdownloading.png")
Label1.Caption = ConstStr(23)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Enabled = False
End If
If MsgBoxType = "UPDATING" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgdownloading.png")
Label1.Caption = ConstStr(49)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Enabled = False
End If
If MsgBoxType = "UPLOADING" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgdownloading.png")
Label1.Caption = ConstStr(43)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Enabled = False
End If
If MsgBoxType = "LOADINGINFO" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgdownloading.png")
Label1.Caption = ConstStr(27)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Enabled = False
End If
If MsgBoxType = "DELETE" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(24)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "SAVED" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(31)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "LINK" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(47)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "RENAME" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(25)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "SEARCHERR" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgerr.png")
Label1.Caption = ConstStr(36)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
If MsgBoxType = "LATEST" Then
Image1.Picture = StdPictureEx.LoadPicture(App.Path & "\Assets\dec-msgok.png")
Label1.Caption = ConstStr(54)
Label1.Font.Name = "DinkieBitmap 9pxDemo"
Timer1.Interval = 1500
Timer1.Enabled = True
End If
DoEvents
End Sub
Private Sub Form_Initialize()
InitCommonControls
End Sub
Private Sub Timer1_Timer()
Me.Hide
Unload Me
End Sub