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

📄 frmpopup.frm

📁 本程序是用VB关于AT指令的一个手机短信收发各式,现在拿出来给大家一起学习
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmPopup 
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   0  'None
   ClientHeight    =   360
   ClientLeft      =   120
   ClientTop       =   405
   ClientWidth     =   1890
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   ScaleHeight     =   360
   ScaleWidth      =   1890
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   1
      Left            =   0
      Top             =   0
   End
   Begin VB.Menu Menu 
      Caption         =   "Menu"
      Begin VB.Menu MnuSend 
         Caption         =   "Send Text to AT+Command Test"
      End
      Begin VB.Menu spr 
         Caption         =   "-"
      End
      Begin VB.Menu MnuCopy 
         Caption         =   "Copy Text"
      End
      Begin VB.Menu MnuFind 
         Caption         =   "Find Text"
      End
   End
End
Attribute VB_Name = "FrmPopup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub MnuCopy_Click()
Timer1.Enabled = False
LockWindowUpdate FrmMain.RtbListATC.hWnd
SendMessage FrmMain.RtbListATC.hWnd, WM_COPY, 0, 0
DoEvents
LockWindowUpdate 0&
Timer1.Enabled = True
End Sub

Private Sub MnuFind_Click()
Dim A$, N
A$ = FindText$
If A$ <> "" Then
   For N = 0 To Frmfind.cmbFind.ListCount - 1
       If A$ = Frmfind.cmbFind.List(N) Then Exit For
   Next N
   If N = Frmfind.cmbFind.ListCount Then Frmfind.cmbFind.AddItem A$, (0)
   Frmfind.cmbFind.Text = A$
End If
Frmfind.Show
End Sub

Private Sub Form_Unload(Cancel As Integer)
Frmfind.Visible = False
Cancel = 1
End Sub

Private Sub MnuSend_Click()
Dim A$, N
A$ = FindText$
If A$ <> "" Then
   For N = 0 To FrmMain.CmbATC.ListCount - 1
       If A$ = FrmMain.CmbATC.List(N) Then Exit For
   Next N
   If N = FrmMain.CmbATC.ListCount Then FrmMain.CmbATC.AddItem A$, (0)
   FrmMain.CmbATC.Text = A$
End If
End Sub

⌨️ 快捷键说明

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