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

📄 eniv.cls

📁 金算盘软件代码
💻 CLS
字号:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "Eniv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'
'  环境类
'  作者:黄涛
'  日期:1998.02.21
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Option Explicit

'机器名最大长度
Private Const MachineNameLen As Long = 16

'机器名
Public Property Get MachineName() As String
    Dim mstrMachineName As String * MachineNameLen
    
    GetComputerName mstrMachineName, MachineNameLen
    
    MachineName = strLeft(mstrMachineName, MachineNameLen)
End Property

'水平滚动条高度
Public Property Get HScrollHeight() As Integer
   HScrollHeight = GetSystemMetrics(SM_CYHSCROLL) * Screen.TwipsPerPixelY
End Property

'垂直滚动条宽度
Public Property Get VScrollWidth() As Integer
   VScrollWidth = GetSystemMetrics(SM_CXVSCROLL) * Screen.TwipsPerPixelX
End Property



⌨️ 快捷键说明

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