📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "控制任务条的显示和隐藏"
ClientHeight = 1740
ClientLeft = 4410
ClientTop = 2895
ClientWidth = 2925
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 1740
ScaleWidth = 2925
Begin VB.CommandButton Hide
Caption = "隐藏任务条"
Height = 375
Left = 480
TabIndex = 0
Top = 120
Width = 1815
End
Begin VB.CommandButton Show
Caption = "显示任务条"
Height = 375
Left = 480
TabIndex = 1
Top = 600
Width = 1815
End
Begin VB.CommandButton Cancel
Caption = "退出程序"
Height = 375
Left = 480
TabIndex = 2
Top = 1080
Width = 1812
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cancel_Click()
Unload Me '退出程序
End Sub
Private Sub Form_Load()
Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2 '窗体居中显示
End Sub
Private Sub Hide_Click()
rtn = FindWindow("Shell_traywnd", "")
Call SetWindowPos(rtn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW) '
End Sub
Private Sub Show_Click()
rtn = FindWindow("Shell_traywnd", "")
Call SetWindowPos(rtn, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -