📄 frmmain.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmMain
BackColor = &H00E0E0E0&
Caption = "软件技术知识库"
ClientHeight = 2910
ClientLeft = 165
ClientTop = 450
ClientWidth = 4680
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2910
ScaleWidth = 4680
WindowState = 2 'Maximized
Begin VB.Frame Frame1
BackColor = &H00E0E0E0&
Caption = "[您想怎么做?]"
Height = 990
Left = 7800
TabIndex = 10
Top = 6750
Width = 3990
Begin VB.CommandButton cmdCopy
BackColor = &H00E0E0E0&
Caption = "粘贴"
Enabled = 0 'False
Height = 390
Left = 2775
Style = 1 'Graphical
TabIndex = 13
Top = 375
Width = 1065
End
Begin VB.CommandButton cmdSaveAs
BackColor = &H00E0E0E0&
Caption = "存为文件"
Enabled = 0 'False
Height = 390
Left = 1462
Style = 1 'Graphical
TabIndex = 12
Top = 375
Width = 1065
End
Begin VB.CommandButton cmdShow
BackColor = &H00E0E0E0&
Caption = "查看"
Enabled = 0 'False
Height = 390
Left = 150
Style = 1 'Graphical
TabIndex = 11
Top = 375
Width = 1065
End
End
Begin MSComDlg.CommonDialog dlgSendTo
Left = 4425
Top = 2400
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComctlLib.ImageList ImageList2
Left = 3150
Top = 3000
_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 = "frmMain.frx":0442
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0894
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 525
Top = 2025
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0CE6
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1138
Key = ""
EndProperty
EndProperty
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\希望出版社\知识管理\Manager.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 0
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "类别表"
Top = 6075
Visible = 0 'False
Width = 2490
End
Begin VB.PictureBox picSplitter
BackColor = &H00808080&
BorderStyle = 0 'None
FillColor = &H00808080&
Height = 4800
Left = 5475
ScaleHeight = 2090.126
ScaleMode = 0 'User
ScaleWidth = 0
TabIndex = 7
Top = 705
Visible = 0 'False
Width = 0
End
Begin VB.PictureBox picTitles
Align = 1 'Align Top
Height = 300
Left = 0
ScaleHeight = 240
ScaleWidth = 4620
TabIndex = 2
TabStop = 0 'False
Top = 420
Width = 4680
Begin VB.Label Label2
BackColor = &H00FFC0FF&
BorderStyle = 1 'Fixed Single
Caption = "内容说明:"
Height = 240
Left = 7650
TabIndex = 14
Top = 0
Width = 4215
End
Begin VB.Label lblTitle
BackColor = &H00FFC0FF&
BorderStyle = 1 'Fixed Single
Caption = " 内容列表:"
Height = 270
Index = 1
Left = 2078
TabIndex = 4
Tag = " 列表视图:"
Top = 12
Width = 3216
End
Begin VB.Label lblTitle
BackColor = &H00FFC0FF&
BorderStyle = 1 'Fixed Single
Caption = " 内容分类:"
Height = 270
Index = 0
Left = 0
TabIndex = 3
Tag = " 树形视图:"
Top = 12
Width = 2016
End
End
Begin MSComctlLib.Toolbar tbToolBar
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 1
Top = 0
Width = 4680
_ExtentX = 8255
_ExtentY = 741
ButtonWidth = 609
ButtonHeight = 582
Appearance = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 3
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "大图标"
Object.ToolTipText = "大图标"
ImageKey = "View Large Icons"
Style = 2
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "小图标"
Object.ToolTipText = "小图标"
ImageKey = "View Small Icons"
Style = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "列表"
Object.ToolTipText = "列表"
ImageKey = "View List"
Style = 2
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 2640
Width = 4680
_ExtentX = 8255
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 2619
Text = "南华信科公司版权所有。2001-2002。EMAIL:amymax@263.net,电话:010-88123932"
TextSave = "南华信科公司版权所有。2001-2002。EMAIL:amymax@263.net,电话:010-88123932"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "2002-5-14"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "0:51"
EndProperty
EndProperty
End
Begin MSComDlg.CommonDialog dlgCommonDialog
Left = 5625
Top = 1275
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 1740
Top = 1215
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 11
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":158A
Key = "Back"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":169C
Key = "Forward"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":17AE
Key = "Cut"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":18C0
Key = "Copy"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":19D2
Key = "Paste"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1AE4
Key = "Delete"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1BF6
Key = "Properties"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1D08
Key = "View Large Icons"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1E1A
Key = "View Small Icons"
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":1F2C
Key = "View List"
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":203E
Key = "View Details"
EndProperty
EndProperty
End
Begin MSComctlLib.ListView lvListView
Height = 7350
Left = 2055
TabIndex = 5
Top = 705
Width = 5610
_ExtentX = 9895
_ExtentY = 12965
Arrange = 2
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList2"
SmallIcons = "ImageList1"
ColHdrIcons = "ImageList1"
ForeColor = -2147483640
BackColor = 15663086
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin MSComctlLib.TreeView tvwC
Height = 7350
Left = 0
TabIndex = 6
Top = 705
Width = 2010
_ExtentX = 3545
_ExtentY = 12965
_Version = 393217
Indentation = 529
Style = 7
ImageList = "ImageList1"
Appearance = 1
End
Begin VB.OLE OLE1
BackColor = &H00EEFFEE&
DataSource = "Data1"
Height = 3465
Left = 7800
SizeMode = 1 'Stretch
TabIndex = 9
Top = 3150
Width = 3990
End
Begin VB.Label Label1
BackColor = &H00EEFFEE&
BorderStyle = 1 'Fixed Single
Height = 2190
Left = 7800
TabIndex = 8
Top = 825
Width = 3990
End
Begin VB.Image imgSplitter
Height = 4788
Left = 1965
MousePointer = 9 'Size W E
Top = 705
Width = 150
End
Begin VB.Menu mnuFile
Caption = "文件(&F)"
Begin VB.Menu mnuFileSendTo
Caption = "发送到本地磁盘(&D)"
End
Begin VB.Menu mnuFileClose
Caption = "关闭(&C)"
End
End
Begin VB.Menu mnuView
Caption = "视图(&V)"
Begin VB.Menu mnuViewToolbar
Caption = "工具栏(&T)"
Checked = -1 'True
End
Begin VB.Menu mnuViewStatusBar
Caption = "状态栏(&B)"
Checked = -1 'True
End
Begin VB.Menu mnuViewBar0
Caption = "-"
End
Begin VB.Menu mnuListViewMode
Caption = "大图标(&G)"
Index = 0
End
Begin VB.Menu mnuListViewMode
Caption = "小图标(&M)"
Index = 1
End
Begin VB.Menu mnuListViewMode
Caption = "列表(&L)"
Index = 2
End
End
Begin VB.Menu mnuData
Caption = "数据(&D)"
Begin VB.Menu mnuDatafrm类别表
Caption = "类别表"
End
Begin VB.Menu mnuDatafrm文件表
Caption = "文件表"
End
End
Begin VB.Menu mnuHelp
Caption = "帮助(&H)"
Begin VB.Menu mnuHelpAbout
Caption = "关于(&A) "
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const NAME_COLUMN = 0
Const TYPE_COLUMN = 1
Const SIZE_COLUMN = 2
Const DATE_COLUMN = 3
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Dim mbMoving As Boolean
Const sglSplitLimit = 500
Private Sub cmdCopy_Click()
OLE1.Copy
End Sub
Private Sub cmdSaveAs_Click()
Call mnuFileSendTo_Click
End Sub
Private Sub cmdShow_Click()
OLE1.DoVerb (0)
End Sub
Private Sub Form_Load()
Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
Data1.DatabaseName = conn
tvwCRefresh
End Sub
Private Sub Form_Paint()
lvListView.View = Val(GetSetting(App.Title, "Settings", "ViewMode", "0"))
Select Case lvListView.View
Case lvwIcon
tbToolBar.Buttons(LISTVIEW_MODE0).Value = tbrPressed
Case lvwSmallIcon
tbToolBar.Buttons(LISTVIEW_MODE1).Value = tbrPressed
Case lvwList
tbToolBar.Buttons(LISTVIEW_MODE2).Value = tbrPressed
Case lvwReport
tbToolBar.Buttons(LISTVIEW_MODE3).Value = tbrPressed
End Select
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -