⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmouse.frm

📁 很好的教程原代码!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Mouse Demonstration"
   ClientHeight    =   2220
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4800
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2220
   ScaleWidth      =   4800
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "获取鼠标信息"
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4575
   End
   Begin VB.Label lbldblclick 
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   1560
      Width           =   4575
   End
   Begin VB.Label lblmouse 
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   1080
      Width           =   4455
   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 Sub Command1_Click()
    If GetSystemMetrics(SM_MOUSEPRESENT) = 1 Then
        lblmouse = "标准鼠标,按键个数:" & GetSystemMetrics(SM_CMOUSEBUTTONS)
    Else
        lblmouse = "现在没有鼠标"
        Exit Sub
    End If
    lbldblclick = "双击速度 = " & GetDoubleClickTime & "ms"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -