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

📄 getresolution.txt

📁 一部分关于VB编程的小技巧
💻 TXT
字号:
Option Explicit

Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long

Private Const SM_CXSCREEN = 0
Private Const SM_CYSCREEN = 1
Public cX As Integer
Public cY As Integer

Public Function GetScreenResolution640x480() As Boolean
Dim lTemp As String
    lTemp = GetSystemMetrics(SM_CXSCREEN) & "x" & GetSystemMetrics(SM_CYSCREEN)
    If lTemp = "640x480" Then
      GetScreenResolution640x480 = True
    Else
      GetScreenResolution640x480 = False
    End If
End Function

Public Function PutScreenResIntoVariables()
Dim lTemp As String
    cX = GetSystemMetrics(SM_CXSCREEN)
    cY = GetSystemMetrics(SM_CYSCREEN)
End Function

⌨️ 快捷键说明

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