显示和隐藏鼠标光标.frm
来自「Windows API函数,希望大伙有用哦」· FRM 代码 · 共 44 行
FRM
44 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1710
ClientLeft = 60
ClientTop = 345
ClientWidth = 4470
LinkTopic = "Form1"
ScaleHeight = 1710
ScaleWidth = 4470
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 3000
Left = 2280
Top = 600
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 2000
Left = 1500
Top = 570
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Sub Form_Load()
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
Timer2.Enabled = True
ShowCursor False
End Sub
Private Sub Timer2_Timer()
Timer2.Enabled = True
ShowCursor True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?