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

📄 callback_vb_fax.frm

📁 三汇CTI示例程序源码
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form Fax 
   Caption         =   "Fax Speed"
   ClientHeight    =   7695
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   10935
   LinkTopic       =   "Form1"
   ScaleHeight     =   7695
   ScaleWidth      =   10935
   StartUpPosition =   3  'Windows Default
   Begin MSComDlg.CommonDialog CommonDialog_SendFile 
      Left            =   2880
      Top             =   6600
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Timer Timer1 
      Interval        =   200
      Left            =   2880
      Top             =   5880
   End
   Begin TabDlg.SSTab FaxTab 
      Height          =   3375
      Left            =   3720
      TabIndex        =   6
      Top             =   4200
      Width           =   6885
      _ExtentX        =   12144
      _ExtentY        =   5953
      _Version        =   393216
      Tabs            =   2
      TabHeight       =   520
      TabCaption(0)   =   "Receive Fax"
      TabPicture(0)   =   "Callback_VB_Fax.frx":0000
      Tab(0).ControlEnabled=   -1  'True
      Tab(0).Control(0)=   "Label1"
      Tab(0).Control(0).Enabled=   0   'False
      Tab(0).Control(1)=   "Label2"
      Tab(0).Control(1).Enabled=   0   'False
      Tab(0).Control(2)=   "RxFileName"
      Tab(0).Control(2).Enabled=   0   'False
      Tab(0).Control(3)=   "RxFilePath"
      Tab(0).Control(3).Enabled=   0   'False
      Tab(0).Control(4)=   "RecBrowse"
      Tab(0).Control(4).Enabled=   0   'False
      Tab(0).ControlCount=   5
      TabCaption(1)   =   "Send Fax"
      TabPicture(1)   =   "Callback_VB_Fax.frx":001C
      Tab(1).ControlEnabled=   0   'False
      Tab(1).Control(0)=   "Submit"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "SendBrowse"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).Control(2)=   "TxFileName"
      Tab(1).Control(2).Enabled=   0   'False
      Tab(1).Control(3)=   "CallingId"
      Tab(1).Control(3).Enabled=   0   'False
      Tab(1).Control(4)=   "Label4"
      Tab(1).Control(4).Enabled=   0   'False
      Tab(1).Control(5)=   "Label3"
      Tab(1).Control(5).Enabled=   0   'False
      Tab(1).ControlCount=   6
      Begin VB.CommandButton RecBrowse 
         Caption         =   "Browse"
         Height          =   375
         Left            =   5280
         TabIndex        =   17
         Top             =   2040
         Width           =   975
      End
      Begin VB.CommandButton Submit 
         Caption         =   "Submit Task"
         Height          =   375
         Left            =   -72360
         TabIndex        =   16
         Top             =   2520
         Width           =   1695
      End
      Begin VB.CommandButton SendBrowse 
         Caption         =   "Browse"
         Height          =   375
         Left            =   -69960
         TabIndex        =   14
         Top             =   1800
         Width           =   975
      End
      Begin VB.TextBox TxFileName 
         Enabled         =   0   'False
         Height          =   375
         Left            =   -72960
         TabIndex        =   13
         Top             =   1800
         Width           =   2775
      End
      Begin VB.TextBox CallingId 
         Height          =   375
         Left            =   -72960
         TabIndex        =   11
         Text            =   "0"
         Top             =   1080
         Width           =   2775
      End
      Begin VB.TextBox RxFilePath 
         Enabled         =   0   'False
         Height          =   375
         Left            =   2280
         TabIndex        =   8
         Text            =   "C:"
         Top             =   2040
         Width           =   2655
      End
      Begin VB.TextBox RxFileName 
         Height          =   495
         Left            =   2280
         TabIndex        =   7
         Text            =   "DefaultFax.tif"
         Top             =   1080
         Width           =   2415
      End
      Begin VB.Label Label4 
         Caption         =   "File Name"
         Height          =   375
         Left            =   -74520
         TabIndex        =   15
         Top             =   1800
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "Calling ID"
         Height          =   255
         Left            =   -74640
         TabIndex        =   12
         Top             =   1200
         Width           =   1215
      End
      Begin VB.Label Label2 
         Caption         =   "File Path"
         Height          =   255
         Left            =   1200
         TabIndex        =   10
         Top             =   2160
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "File Name"
         Height          =   255
         Left            =   1200
         TabIndex        =   9
         Top             =   1200
         Width           =   855
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "FaxSpeed"
      Height          =   3015
      Left            =   480
      TabIndex        =   2
      Top             =   4440
      Width           =   2055
      Begin VB.OptionButton Option3 
         Caption         =   "14400bps"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1440
         Width           =   1095
      End
      Begin VB.OptionButton Option2 
         Caption         =   "9600bps"
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   840
         Width           =   975
      End
      Begin VB.OptionButton Option1 
         Caption         =   "4800bps"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   360
         Width           =   1095
      End
   End
   Begin MSFlexGridLib.MSFlexGrid m_TrkChList 
      Height          =   1575
      Left            =   360
      TabIndex        =   1
      Top             =   2400
      Width           =   10215
      _ExtentX        =   18018
      _ExtentY        =   2778
      _Version        =   393216
   End
   Begin MSFlexGridLib.MSFlexGrid m_FaxChList 
      Height          =   1815
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   10215
      _ExtentX        =   18018
      _ExtentY        =   3201
      _Version        =   393216
   End
End
Attribute VB_Name = "Fax"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Form_Load()
    Dim VerMsg As String * 100
    If InitCtiBoard() = False Then
    Unload Me
    Exit Sub
    Else
    Call InitFaxChListCtrl
    Call InitTrunkChListCtrl
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Call SsmCloseCti
End Sub

Private Sub Option1_Click()
    If Option1.value = True Then
        SsmFaxSetMaxSpeed (4800)
    End If
End Sub

Private Sub Option2_Click()
    If Option2.value = True Then
        SsmFaxSetMaxSpeed (9600)
    End If
End Sub

Private Sub Option3_Click()
    If Option3.value = True Then
        SsmFaxSetMaxSpeed (14400)
    End If
End Sub

Private Sub RecBrowse_Click()
Load Receive
Receive.Show
End Sub

Private Sub SendBrowse_Click()
CommonDialog_SendFile.InitDir = SysPath + "\FaxFile"
CommonDialog_SendFile.ShowOpen
TxFileName.Text = CommonDialog_SendFile.filename
End Sub

Private Sub Submit_Click()
    Dim nTrunkCh As Long
    Dim nFaxCh As Long
    If Fax.CallingId.Text <> "0" Then
        nTrunkCh = FindAnIdleTrunkCh()
        nFaxCh = FindAnIdleFaxCh()
        m_TrkCh(nTrunkCh).bLinked = True
        m_TrkCh(nTrunkCh).bUseful = True
        m_FaxCh(nFaxCh).bUseful = True
        m_TrkCh(nTrunkCh).nToFaxCh = nFaxCh
        m_FaxCh(nFaxCh).nTrunkCh = nTrunkCh
        m_TrkCh(nTrunkCh).szCallNo = Fax.CallingId.Text             '.szCallNo
        m_FaxCh(nFaxCh).szSendFile = Fax.TxFileName.Text            '.szSendFile
        CallBack_MessageProc FaxMsg.E_MSG_HAVETASK, nTrunkCh, nFaxCh, Me.hWnd
    Else
        MsgBox ("please input callerid and fax file")
    End If
End Sub

Private Sub Timer1_Timer()
    Call UpdateTrunkChListCtrl
    Call UpdateFaxChListCtrl
End Sub

⌨️ 快捷键说明

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