📄 frmserver.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form frmServer
BorderStyle = 3 'Fixed Dialog
Caption = "CyMobile 管理系统 —— 中心控制端"
ClientHeight = 3975
ClientLeft = 45
ClientTop = 330
ClientWidth = 5070
Icon = "frmServer.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3975
ScaleWidth = 5070
StartUpPosition = 2 '屏幕中心
WhatsThisHelp = -1 'True
Begin VB.ComboBox cboServer
Height = 300
Left = 1800
Style = 2 'Dropdown List
TabIndex = 8
Top = 120
Width = 2775
End
Begin VB.CommandButton cmdStart
DisabledPicture = "frmServer.frx":1CFA
DownPicture = "frmServer.frx":224C
Height = 375
Left = 2040
Picture = "frmServer.frx":279E
Style = 1 'Graphical
TabIndex = 7
Top = 1080
UseMaskColor = -1 'True
Width = 495
End
Begin VB.CommandButton cmdStop
DisabledPicture = "frmServer.frx":2CF0
DownPicture = "frmServer.frx":3242
Height = 375
Left = 2040
Picture = "frmServer.frx":3794
Style = 1 'Graphical
TabIndex = 6
Top = 1560
Width = 495
End
Begin VB.CommandButton cmdSystemSet
Caption = "配置服务器(&P)"
Height = 375
Left = 1800
TabIndex = 5
Top = 500
Width = 2775
End
Begin MSComctlLib.StatusBar stbInfo
Align = 2 'Align Bottom
Height = 255
Left = 0
TabIndex = 0
Top = 3720
Width = 5070
_ExtentX = 8943
_ExtentY = 450
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 4
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 2910
Text = "登录用户: 0"
TextSave = "登录用户: 0"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Alignment = 1
Text = "等待人数:1000"
TextSave = "等待人数:1000"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
Alignment = 1
Object.Width = 2117
MinWidth = 2117
TextSave = "2008-5-7"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
Alignment = 1
Object.Width = 1235
MinWidth = 1235
TextSave = "17:28"
EndProperty
EndProperty
End
Begin VB.CheckBox chk2
Caption = "显示服务信息"
Height = 255
Left = 3600
TabIndex = 4
Top = 2120
Width = 1455
End
Begin VB.Timer timInfo
Enabled = 0 'False
Left = 4440
Top = 600
End
Begin VB.CheckBox chk1
Caption = "当启动 OS 时自动启动服务(&A)"
Height = 255
Left = 120
TabIndex = 3
Top = 2120
Width = 2775
End
Begin MSComctlLib.ImageList img1
Left = 4320
Top = 1680
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 80
ImageHeight = 80
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmServer.frx":3CE6
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmServer.frx":8838
Key = ""
EndProperty
EndProperty
End
Begin VB.ListBox status
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1260
Left = 0
TabIndex = 1
TabStop = 0 'False
Top = 2440
Width = 5055
End
Begin MSWinsockLib.Winsock sock
Index = 0
Left = 3720
Top = 1800
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin MSWinsockLib.Winsock disallow
Left = 3240
Top = 1800
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin MSComctlLib.ImageList img2
Left = 4320
Top = 1080
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmServer.frx":D38A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmServer.frx":F094
Key = ""
EndProperty
EndProperty
End
Begin VB.Label lblInfo
Caption = "停止服务(&S)"
Height = 195
Index = 2
Left = 2760
TabIndex = 10
Top = 1680
Width = 1095
End
Begin VB.Label lblInfo
Caption = "开始服务(&B)"
Height = 195
Index = 1
Left = 2760
TabIndex = 9
Top = 1190
Width = 1095
End
Begin VB.Image imaBack
Height = 1200
Left = 240
Stretch = -1 'True
Top = 720
Width = 1200
End
Begin VB.Label lblInfo
Caption = "数据库服务器(&V):"
Height = 255
Index = 0
Left = 120
TabIndex = 2
Top = 165
Width = 1575
End
Begin VB.Menu mnuMainmenu
Caption = "系统服务端"
Visible = 0 'False
Begin VB.Menu mnuOpenShow
Caption = "打开服务管理器(&M)"
End
Begin VB.Menu mnuSper0
Caption = "-"
End
Begin VB.Menu mnuServerStop
Caption = "MobileServer — 停止(&S)"
End
Begin VB.Menu mnuServerBegin
Caption = "MobileServer — 启动(&B)"
End
Begin VB.Menu mnuSper1
Caption = "-"
End
Begin VB.Menu mnuQuit
Caption = "退出服务(&X)"
End
Begin VB.Menu mnuSystemSet
Caption = "系统配置(&P)"
End
Begin VB.Menu mnuAbout
Caption = "关于系统(&A)..."
End
End
End
Attribute VB_Name = "frmServer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim m_tagErrInfo As TYPE_ERRORINFO '错误信息
Dim MyNot As NOTIFYICONDATA '定义一个托盘结构
Public bDisplay As Boolean '定义第一次显示,窗口自动隐藏
Const H_NEW = 4380 '窗口全高
Const H_OLD = 3060 '窗口半高
Private Sub chk2_Click()
On Error Resume Next
If chk2.Value = Unchecked Then
Me.Height = H_OLD
status.Visible = False
Else
Me.Height = H_NEW
status.Visible = True
End If
frmServer.Refresh
End Sub
Private Sub cmdStart_Click()
On Error GoTo ERROR_EXIT
Dim hh As Long
'start up the server
start_server
'修改状态
cmdStart.Enabled = False
cmdStop.Enabled = True
mnuServerBegin.Enabled = False
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -