-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form3.frm
353 lines (332 loc) · 9.33 KB
/
Form3.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
VERSION 5.00
Begin VB.Form Form3
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "详细信息"
ClientHeight = 4815
ClientLeft = 45
ClientTop = 375
ClientWidth = 9210
ForeColor = &H00C0C0C0&
LinkTopic = "Form3"
MaxButton = 0 'False
ScaleHeight = 4815
ScaleWidth = 9210
StartUpPosition = 3 '窗口缺省
Begin VB.Timer T3
Interval = 70
Left = 2760
Top = 120
End
Begin VB.CommandButton C2
Caption = "详情"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 6600
Style = 1 'Graphical
TabIndex = 5
Top = 3480
Width = 1575
End
Begin VB.Timer T2
Interval = 70
Left = 2040
Top = 120
End
Begin VB.Timer T1
Interval = 70
Left = 1080
Top = 120
End
Begin VB.CommandButton C1
Caption = "联系我"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 6600
Style = 1 'Graphical
TabIndex = 2
Top = 720
Width = 1575
End
Begin VB.Label S2
BackStyle = 0 'Transparent
Caption = "赤"
BeginProperty Font
Name = "宋体"
Size = 72
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 1335
Index = 1
Left = 4680
TabIndex = 8
Top = 2880
Width = 1455
End
Begin VB.Label S1
BackStyle = 0 'Transparent
Caption = "哥"
BeginProperty Font
Name = "宋体"
Size = 72
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 1335
Index = 1
Left = 4800
TabIndex = 7
Top = 120
Width = 1455
End
Begin VB.Label xian2
BackColor = &H00C0C0C0&
Caption = "感谢"
BeginProperty Font
Name = "宋体"
Size = 36
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 855
Left = 3840
TabIndex = 6
Top = 1920
Width = 1575
End
Begin VB.Line xian1
BorderStyle = 4 'Dash-Dot
X1 = 0
X2 = 9240
Y1 = 1920
Y2 = 1920
End
Begin VB.Label S2
BackStyle = 0 'Transparent
Caption = "荣"
BeginProperty Font
Name = "宋体"
Size = 72
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 1335
Index = 0
Left = 3120
TabIndex = 4
Top = 2880
Width = 1455
End
Begin VB.Label S1
BackStyle = 0 'Transparent
Caption = "榮"
BeginProperty Font
Name = "宋体"
Size = 72
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 1335
Index = 0
Left = 3240
TabIndex = 3
Top = 120
Width = 1455
End
Begin VB.Label L2
BackStyle = 0 'Transparent
Caption = "帮助人员:"
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 1
Top = 3240
Width = 2655
End
Begin VB.Label L1
BackStyle = 0 'Transparent
Caption = "作者及编辑:"
BeginProperty Font
Name = "宋体"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 0
Top = 720
Width = 3015
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim S%, l1t%, l2t%, xian%, kuan%, gao%, an%
'***********移动窗体API**********************
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hWnd As Long, ByVal hdc As Long) As Long
Const WM_NCLBUTTONDOWN = &HA1 '定义常量 WM_NCLBUTTONDOWN = &HA1
Const HTCAPTION = 2 '定义常量 HTCAPTION = 2
Private Sub C1_Click()
MsgBox "本人QQ:1273367387 或可加群251924436", vbOK, "联系我"
End Sub
Private Sub C2_Click()
MsgBox "荣赤老师 在一些技术性问题上经常给予我帮助,特此万分感谢", vbYes, "详情"
End Sub
Private Sub Form_Load()
kuan = Form3.Width
gao = Form3.Height
S = S1(0).Width
l1t = L1.Top
l2t = L2.Top
xian = xian1.Y1
an = C1.Left
'-----------------------------
L1.Top = -300
L2.Top = gao + 300
For i = 0 To 1
S2(i).Width = 0
S1(i).Width = 0
Next i
xian1.Y1 = gao + 300
xian1.Y2 = gao + 300
xian2.Top = gao + 300
C1.Left = kuan + 300
C2.Left = kuan + 300
End Sub
Private Sub Form_Resize()
If Form3.Height > gao Then Form3.Height = gao
If Form3.Width > kuan Then Form3.Width = kuan
End Sub
'鼠标按下左键可以拖动窗体
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, y As Single)
If Button = 1 Then '如果 Button = 1 鼠标按下了左键则
Call ReleaseCapture '呼叫 ReleaseCapture
Call SendMessage(Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&) '开始拖动窗体
End If
End Sub
Private Sub T1_Timer()
If L1.Top < l1t Then
L1.Top = L1.Top + 100
Exit Sub
Else
L1.Top = l1t
End If
If S1(0).Width < S Then
S1(0).Width = S1(0).Width + 100
Exit Sub
Else
S1(0).Width = S
End If
If S1(1).Width < S Then
S1(1).Width = S1(1).Width + 100
Exit Sub
Else
S1(1).Width = S
End If
If C1.Left > an Then
C1.Left = C1.Left - 100
Exit Sub
Else
C1.Left = an
End If
T1.Enabled = False
End Sub
Private Sub T2_Timer()
Dim y%
If T1.Enabled = True Then Exit Sub
If xian1.Y1 > xian Then
xian1.Y1 = xian1.Y1 - 100
y = xian1.Y1
xian1.Y2 = y
xian2.Top = y
Exit Sub
Else
xian1.Y1 = xian
y = xian1.Y1
xian1.Y2 = y
xian2.Top = y
End If
T2.Enabled = False
End Sub
Private Sub T3_Timer()
If T2.Enabled = True Then Exit Sub
If L2.Top > l2t Then
L2.Top = L2.Top - 100
Exit Sub
Else
L2.Top = l2t
End If
If S2(0).Width < S Then
S2(0).Width = S2(0).Width + 100
Exit Sub
Else
S2(0).Width = S
End If
If S2(1).Width < S Then
S2(1).Width = S2(1).Width + 100
Exit Sub
Else
S2(1).Width = S
End If
If C2.Left > an Then
C2.Left = C2.Left - 100
Exit Sub
Else
C2.Left = an
End If
T3.Enabled = False
End Sub