📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H80000016&
Caption = "闪烁窗体标题栏"
ClientHeight = 3480
ClientLeft = 60
ClientTop = 345
ClientWidth = 5745
FillColor = &H00FF0000&
ForeColor = &H00FF00FF&
Icon = "Form1.frx":0000
LinkTopic = "Form1"
Picture = "Form1.frx":000C
ScaleHeight = 3480
ScaleWidth = 5745
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
BackColor = &H00C0C0C0&
Caption = "停止演示"
Height = 435
Left = 2115
MaskColor = &H000080FF&
Style = 1 'Graphical
TabIndex = 2
Top = 1440
Width = 1725
End
Begin VB.CommandButton Command3
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 435
Left = 2115
MaskColor = &H000080FF&
Style = 1 'Graphical
TabIndex = 1
Top = 2070
Width = 1725
End
Begin VB.CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "开始演示"
Height = 435
Left = 2115
MaskColor = &H000080FF&
Style = 1 'Graphical
TabIndex = 0
Top = 855
Width = 1725
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 600
Left = 855
Top = 2730
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'声明API函数Flashwindow
Private Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, _
ByVal bInvert As Long) As Long
Private Sub Timer1_Timer()
Call FlashWindow(hwnd, 1)
If Form1.Caption = "闪烁标题栏" Then
Form1.Caption = "欢迎使用! "
Else
Form1.Caption = "闪烁标题栏"
End If
End Sub
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -