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

📄 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    =   4260
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6885
   LinkTopic       =   "Form1"
   ScaleHeight     =   4260
   ScaleWidth      =   6885
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "Quit"
      Height          =   375
      Left            =   4560
      TabIndex        =   1
      Top             =   3600
      Width           =   1455
   End
   Begin MSFlexGridLib.MSFlexGrid ChGrid 
      Height          =   2775
      Left            =   480
      TabIndex        =   0
      Top             =   480
      Width           =   5655
      _ExtentX        =   9975
      _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()
    Dim i%
        
    If InitCtiBoard Then
        Dim EventSet As EVENT_SET_INFO
        Dim pEventSet As Long
        
        'Set event-driven mode
        EventSet.dwWorkMode = 3
        EventSet.lpHandlerParam = Me.hwnd
         gHW = Me.hwnd
        
        pEventSet = VarPtr(EventSet)
        If (SsmSetEvent(-1, -1, True, pEventSet) = -1) Then
        MsgBox ("Fail to call SsmSetEvent")
        End If
                
        Call InitCircuitListCtrl
        Call UpdateCircuitListCtrl
        Hook
    Else
    Unload Me
    End If
End Sub

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

⌨️ 快捷键说明

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