📄 mainform.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form MainForm
Caption = "光盘管家 1.01"
ClientHeight = 5265
ClientLeft = 165
ClientTop = 450
ClientWidth = 8085
Icon = "mainform.frx":0000
LinkTopic = "Form1"
ScaleHeight = 5265
ScaleWidth = 8085
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 4335
Left = 2160
MousePointer = 9 'Size W E
ScaleHeight = 4335
ScaleWidth = 45
TabIndex = 2
Top = 840
Width = 50
End
Begin RichTextLib.RichTextBox RichTextBox1
Height = 1000
Left = 2280
TabIndex = 6
Top = 3840
Width = 5655
_ExtentX = 9975
_ExtentY = 1773
_Version = 393217
Enabled = -1 'True
ReadOnly = -1 'True
ScrollBars = 3
TextRTF = $"mainform.frx":0442
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 510
Left = 0
TabIndex = 3
Top = 0
Width = 8085
_ExtentX = 14261
_ExtentY = 900
ButtonWidth = 1138
ButtonHeight = 847
AllowCustomize = 0 'False
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 10
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "增加"
Key = "add"
Object.ToolTipText = "增加一张新的光盘"
ImageIndex = 4
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "查找"
Key = "find"
Object.ToolTipText = "查找文件夹或文件"
ImageIndex = 5
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "备份"
Key = "backup"
Object.ToolTipText = "将光盘库备份至软盘或硬盘"
ImageIndex = 6
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "恢复"
Key = "restore"
Object.ToolTipText = "从软盘或硬盘中读入光盘库"
ImageIndex = 7
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = " 帮助 "
Key = "help"
ImageIndex = 8
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
EndProperty
BorderStyle = 1
Begin MSComctlLib.ImageList ImageList1
Left = 6600
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 13
ImageHeight = 13
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 10
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":06CC
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":0B20
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":0C1C
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":0D18
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":0E2C
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":0F40
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":1394
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":17E8
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":18FC
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainform.frx":1D50
Key = ""
EndProperty
EndProperty
End
End
Begin MSComctlLib.TreeView TreeView2
Height = 2775
Left = 2280
TabIndex = 1
Top = 840
Width = 5655
_ExtentX = 9975
_ExtentY = 4895
_Version = 393217
HideSelection = 0 'False
Indentation = 529
LabelEdit = 1
LineStyle = 1
Style = 7
ImageList = "ImageList1"
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSComctlLib.TreeView TreeView1
Height = 4575
Left = 0
TabIndex = 0
Top = 720
Width = 2175
_ExtentX = 3836
_ExtentY = 8070
_Version = 393217
HideSelection = 0 'False
Indentation = 529
LabelEdit = 1
LineStyle = 1
Style = 7
ImageList = "ImageList1"
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "光盘描述"
Height = 180
Left = 2280
TabIndex = 5
Top = 3650
Width = 720
End
Begin VB.Label Label1
Caption = "文件列表框"
Height = 180
Left = 2280
TabIndex = 4
Top = 600
Width = 5820
End
Begin VB.Menu mnuStyleRightButtonMenu
Caption = "分类右键菜单"
Visible = 0 'False
Begin VB.Menu mnuStyleFind
Caption = "查找..."
End
Begin VB.Menu mnuAddStyle
Caption = "增加类别"
End
Begin VB.Menu mnuDeleteStyle
Caption = "删除类别"
End
Begin VB.Menu mnuRenameStyle
Caption = "重命名类别"
End
End
Begin VB.Menu mnuCdromRightButtonMenu
Caption = "光盘右键菜单"
Visible = 0 'False
Begin VB.Menu mnuCdromFind
Caption = "查找..."
End
Begin VB.Menu mnuAddCdrom
Caption = "增加光盘"
End
Begin VB.Menu mnuDeleteCdrom
Caption = "删除光盘"
End
Begin VB.Menu mnuRenameCdrom
Caption = "重命名光盘"
End
Begin VB.Menu mnuCdromMove
Caption = "移至..."
End
Begin VB.Menu mnuCdromEditMx
Caption = "修改描述文本"
End
End
Begin VB.Menu mnuFindResult
Caption = "查找结果"
Visible = 0 'False
Begin VB.Menu mnuFindResultDelete
Caption = "删除查找结果"
End
End
End
Attribute VB_Name = "MainForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public CdromText As String
Public bMouseDown As Boolean
Private Sub Form_Load()
CencerForm Me
TreeView1.Top = Toolbar1.Height + 10
TreeView1.Left = 10
Label2.Top = 520 + Label1.Height + TreeView2.Height + 100
RichTextBox1.Top = 520 + Label1.Height + TreeView2.Height + Label2.Height + 300
Picture1.Left = TreeView1.Width
Picture1.Top = TreeView1.Top
TreeView2.Left = TreeView1.Width + Picture1.Width
Label1.Left = TreeView2.Left
RichTextBox1.Left = TreeView2.Left
Label2.Left = TreeView2.Left
bMouseDown = False
TreeView1.Nodes.Add , , "光盘库", "光盘库", 9
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -