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

📄 mainform.frm

📁 三汇CTI示例程序源码
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form MainForm 
   Caption         =   "Call"
   ClientHeight    =   4185
   ClientLeft      =   6570
   ClientTop       =   5625
   ClientWidth     =   6645
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4185
   ScaleWidth      =   6645
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   960
      Top             =   3600
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Quit"
      Height          =   375
      Left            =   4560
      TabIndex        =   1
      Top             =   3600
      Width           =   1455
   End
   Begin MSFlexGridLib.MSFlexGrid ChGrid 
      Height          =   2775
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   6135
      _ExtentX        =   10821
      _ExtentY        =   4895
      _Version        =   393216
      Appearance      =   0
   End
End
Attribute VB_Name = "MainForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
Unload Me
End Sub

Private Sub Form_Load()
    
     If InitCtiBoard Then
        Dim EventSet As EVENT_SET_INFO

        EventSet.dwWorkMode = 2 'callback mode
        EventSet.lpHandlerParam = CallbackPt(AddressOf EventCallbackProc)

        If (SsmSetEvent(-1, -1, True, EventSet) = -1) Then
            MsgBox ("Fail to call SsmSetEvent")
        End If
                
        Call InitCircuitListCtrl
        Call UpdateChListCtrl
    Else
    Unload Me
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    SsmCloseCti         'Close board driver
End Sub

Private Sub Timer1_Timer()
    Call UpdateChListCtrl
End Sub

⌨️ 快捷键说明

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