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

📄 frmonlineuser.frm

📁 计算机网络与通信的知识
💻 FRM
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
Begin VB.Form frmOnlineUser 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "ICQ客户--在线用户查看"
   ClientHeight    =   4035
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6135
   ControlBox      =   0   'False
   Icon            =   "frmOnlineUser.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   269
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   409
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdExit 
      Caption         =   "关闭"
      Height          =   375
      Left            =   4560
      TabIndex        =   1
      Top             =   3600
      Width           =   1455
   End
   Begin ComctlLib.ListView lvwUser 
      Height          =   3495
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   6135
      _ExtentX        =   10821
      _ExtentY        =   6165
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   327680
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin VB.Menu mnuOnlineUser 
      Caption         =   "在线用户"
      Visible         =   0   'False
      Begin VB.Menu mnuAddBuddy 
         Caption         =   "加入好友列表"
      End
   End
End
Attribute VB_Name = "frmOnlineUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim blnRightKey As Boolean
Dim BuddyTp As BuddyNode
Private Sub cmdExit_Click()
Unload Me
End Sub



Private Sub Form_Load()
ListViewDispRecordSet frmOnlineUser.lvwUser, strOnlineUser, strFdRd, strFdDivRst
lvwUser.LabelEdit = lvwManual
End Sub




Private Sub lvwUser_ItemClick(ByVal Item As ComctlLib.ListItem)
If blnRightKey Then
    With BuddyTp
        .strName = Item.Text
        .strAccount = Item.SubItems(1)
        .strSex = Item.SubItems(2)
        .strFancy = Item.SubItems(3)
    End With
    PopupMenu mnuOnlineUser
End If
End Sub

Private Sub lvwUser_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
blnRightKey = False
If Button = 2 Then blnRightKey = True
End Sub
'====================
' 加入好友列表
'====================
Private Sub mnuAddBuddy_Click()
With BuddyTp
    If Not AddBuddy(.strAccount, .strName, .strSex, .strFancy) Then
        MsgBox "用户 " + .strName + "/" + .strAccount + " 已经在您的好友列表中!", 16, "ICQ客户"
        Exit Sub
    End If
End With
frmMain.ListView1.ListItems.Clear
InitBuddyList frmMain.ListView1
End Sub

⌨️ 快捷键说明

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