📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "P2P开发平台DEMO-深圳君曼通讯软件开发有限公司 开发部"
ClientHeight = 8115
ClientLeft = 165
ClientTop = 735
ClientWidth = 13305
LinkTopic = "Form1"
ScaleHeight = 8115
ScaleWidth = 13305
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text10
Height = 7935
Left = 9360
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 26
Top = 120
Width = 3735
End
Begin VB.Frame Frame3
Caption = "2.设置网络"
Height = 1335
Left = 120
TabIndex = 20
Top = 600
Width = 2895
Begin VB.TextBox Text9
Height = 270
Left = 240
TabIndex = 23
Text = "127.0.0.1"
Top = 480
Width = 1335
End
Begin VB.TextBox Text8
Height = 270
Left = 1680
TabIndex = 22
Text = "3292"
Top = 480
Width = 975
End
Begin VB.CommandButton Command2
Caption = "设置网络SetNetworkDll"
Height = 375
Left = 360
TabIndex = 21
Top = 840
Width = 2175
End
Begin VB.Label Label9
Caption = "服务器IP"
Height = 255
Left = 240
TabIndex = 25
Top = 240
Width = 855
End
Begin VB.Label Label8
Caption = "端口"
Height = 255
Left = 1680
TabIndex = 24
Top = 240
Width = 855
End
End
Begin VB.Frame Frame2
Caption = "3.登陆"
Height = 1335
Left = 120
TabIndex = 13
Top = 2040
Width = 2895
Begin VB.TextBox Text7
Height = 270
Left = 1560
TabIndex = 16
Text = "123321"
Top = 480
Width = 975
End
Begin VB.TextBox Text6
Height = 270
Left = 240
TabIndex = 15
Text = "10002"
Top = 480
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "登陆CmdLoginDll"
Height = 375
Left = 120
TabIndex = 14
Top = 840
Width = 2655
End
Begin VB.Label Label6
Caption = "Password"
Height = 255
Left = 1560
TabIndex = 18
Top = 240
Width = 855
End
Begin VB.Label Label5
Caption = "UIN"
Height = 255
Left = 240
TabIndex = 17
Top = 240
Width = 855
End
End
Begin VB.Frame Frame1
Caption = "5.发送信息"
Height = 3975
Left = 120
TabIndex = 3
Top = 4080
Width = 2895
Begin VB.CommandButton Command6
Caption = "发送消息到服务器"
Height = 375
Left = 120
TabIndex = 27
Top = 3480
Width = 2655
End
Begin VB.CommandButton Command5
Caption = "发送信息给对方CmdSendMsgDll"
Height = 375
Left = 120
TabIndex = 8
Top = 3000
Width = 2655
End
Begin VB.TextBox Text2
Height = 375
Left = 1080
TabIndex = 7
Text = "IP"
Top = 1080
Width = 1695
End
Begin VB.TextBox Text3
Height = 375
Left = 1080
TabIndex = 6
Text = "port"
Top = 1560
Width = 1695
End
Begin VB.TextBox Text4
Height = 375
Left = 1080
TabIndex = 5
Text = "10002"
Top = 600
Width = 1695
End
Begin VB.TextBox Text5
Height = 855
Left = 720
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 4
Text = "Form1.frx":0000
Top = 2040
Width = 2055
End
Begin VB.Label Label7
Caption = "现在默认发送给自己,只需要更改相关设置既可以发给别人"
Height = 375
Left = 240
TabIndex = 19
Top = 240
Width = 2535
End
Begin VB.Label Label1
Caption = "对方UIN"
Height = 255
Left = 240
TabIndex = 12
Top = 720
Width = 735
End
Begin VB.Label Label2
Caption = "对方IP"
Height = 255
Left = 240
TabIndex = 11
Top = 1080
Width = 735
End
Begin VB.Label Label3
Caption = "对方port"
Height = 255
Left = 240
TabIndex = 10
Top = 1560
Width = 735
End
Begin VB.Label Label4
Caption = "信息"
Height = 255
Left = 240
TabIndex = 9
Top = 2040
Width = 375
End
End
Begin VB.TextBox Text1
Height = 7935
Left = 3120
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 120
Width = 6015
End
Begin VB.CommandButton Command4
Caption = "4.获取好友列表CmdReqContactListDll"
Height = 495
Left = 120
TabIndex = 1
Top = 3480
Width = 2895
End
Begin VB.CommandButton Command1
Caption = "1.初始化StartUp"
Height = 375
Left = 120
TabIndex = 0
Top = 120
Width = 2895
End
Begin VB.Menu file
Caption = "文件(&F)"
Begin VB.Menu exit
Caption = "退出(&X)"
End
End
Begin VB.Menu help
Caption = "帮助(&H)"
Begin VB.Menu readme
Caption = "说明(&R)"
End
Begin VB.Menu about
Caption = "关于(&A)"
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub about_Click()
Form3.Show
End Sub
Private Sub Command1_Click()
Call StartUp(AddressOf ExeGetLeaveMsg, AddressOf ExeAdvertisement, AddressOf ExeLocalErr, AddressOf ExeSetTimer, AddressOf ExeGetMsg, AddressOf ExeUserOnline, AddressOf ExeSysMsg, AddressOf ExeAdvSearch)
'
CmdiniLog "MaimPro", False
Form1.Text1.Text = Form1.Text1.Text & vbCrLf & vbCrLf & "StartUp::::::::::::: ok! "
End Sub
Private Sub Command2_Click()
SetNetworkDll Text9.Text, CLng(Text8.Text), "", 0, "", ""
Form1.Text1.Text = Form1.Text1.Text & vbCrLf & vbCrLf & "SetNetworkDll::::::::::::: ok! "
End Sub
Private Sub Command3_Click()
Call CmdLoginDll(AddressOf ExeLoginReply, 11, CLng(Text6.Text), "", Text7.Text)
End Sub
Private Sub Command4_Click()
Call CmdReqContactListDll(AddressOf ExeReqContactList)
End Sub
Private Sub Command5_Click()
Call CmdSendMsgDll(MSG_TEXT, WITH_FIREWARE, 0, CLng(Text4.Text), Text2.Text, Text3.Text, Text5.Text & " " + CStr(Now))
' Call CmdSendMsgDll(MSG_TEXT, WITH_FIREWARE, 0, CLng(Text4.Text), Text2.Text, Text3.Text, "\t2\n宋体\c#000000\C" & Text5.Text & " " + CStr(Now))
' Call CmdSendMsgDll(MSG_TEXT, WITH_FIREWARE, 0, 10002, g_stSelUser.sIP, g_stSelUser.nPort, "AAAAAAAAAAAAAAA " + CStr(Now))
End Sub
Private Sub Command6_Click()
Call CmdSendMsgToSvr(1, 0, Text5.Text)
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub readme_Click()
Form2.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -