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

📄 frmtransfersetup.frm

📁 用VB编写的接收卫星接收机的是数据
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmTransferSetup 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "打开/配置设备向导 Step2 —— 通信设置"
   ClientHeight    =   4785
   ClientLeft      =   45
   ClientTop       =   375
   ClientWidth     =   6765
   Icon            =   "frmTransferSetup.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4785
   ScaleWidth      =   6765
   StartUpPosition =   1  '所有者中心
   Visible         =   0   'False
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   5040
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmTransferSetup.frx":0CCA
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ListView lstEndpoints 
      Height          =   1335
      Left            =   120
      TabIndex        =   1
      Top             =   2040
      Width           =   6495
      _ExtentX        =   11456
      _ExtentY        =   2355
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      Icons           =   "ImageList1"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      Appearance      =   1
      NumItems        =   0
   End
   Begin VB.Label lblCurrentSel 
      AutoSize        =   -1  'True
      Height          =   180
      Left            =   120
      TabIndex        =   2
      Top             =   4320
      Width           =   90
   End
   Begin VB.Label lblEndpointList 
      AutoSize        =   -1  'True
      Caption         =   "可用的用步流通信端点:"
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   1560
      Width           =   1890
   End
End
Attribute VB_Name = "frmTransferSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public strSelEndpoint As String
'Private Sub Form_Activate()



'Load frmParamSetup
'frmParamSetup.Show vbModal, frmMain

'End Sub

Private Sub Form_load()
  Unload frmDeviceSetup
  Call procFillEndpointList
  strSelEndpoint = ""

 End Sub

'Private Sub Form_Load()
  'Unload frmDeviceSetup
 ' Call procFillEndpointList
 ' strSelEndpoint = ""
'End Sub

Private Sub procFillEndpointList()
Dim tmpEdpoint As New Endpoint
Dim lngPipeNum As Long
Dim retval As Long
Dim lngEdpointNum As Long
Dim lngProgress As Long

With frmMain.ezlibObj

  If Len(Trim(.CurrentDeviceName)) <> 0 And _
     .IsChipRunning = ChipIsRunning Then

    For i = 1 To .InterfaceCount
       lngEdpointNum = lngEdpointNum + .Interfaces(i).bNumEndpoints
    Next i
    frmMain.lblWorkName.Caption = "正在查询可用的接口..."
    frmMain.prgsWork.Max = lngEdpointNum + 1
    frmMain.prgsWork.Min = 1

     
     lstEndpoints.ListItems.Clear
     'lstRestEndpoint.Clear
     
     
        For i = 1 To .InterfaceCount
            For j = 1 To .Interfaces(i).bNumEndpoints
               Set tmpEdpoint = .Interfaces(i).Endpoints(j)
               
               
               retval = .IsISOEndpoint(tmpEdpoint, lngPipeNum)
               If retval = 1 Then
                  Call lstEndpoints.ListItems.Add(, , "管道" + CStr(lngPipeNum) + "@" + "接口" + CStr(i) + ".端点" + CStr(j), 1)
               'Else
                  'Call lstRestEndpoint.AddItem("接口" + CStr(i) + ".端点" + CStr(j))
               End If
                           
               frmMain.prgsWork.Value = lngProgress + 1
               frmMain.lblPrecent.Caption = CStr(Int(lngProgress / frmMain.prgsWork.Max * 100)) + "%"
               lngProgress = lngProgress + 1
               
               DoEvents
            Next j
        Next i
        
        frmMain.lblWorkName = ""
        frmMain.lblPrecent.Caption = ""
        frmMain.prgsWork.Value = 1
        
    
  End If
  
End With

End Sub

⌨️ 快捷键说明

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