📄 frmlv.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmLv
ClientHeight = 6855
ClientLeft = 60
ClientTop = 60
ClientWidth = 11400
ControlBox = 0 'False
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "FrmLv.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6855
ScaleWidth = 11400
Begin VB.PictureBox PicExif
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
BeginProperty Font
Name = "Verdana"
Size = 27.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 1215
Left = 10800
ScaleHeight = 81
ScaleMode = 3 'Pixel
ScaleWidth = 65
TabIndex = 5
Top = -2.45760e5
Visible = 0 'False
Width = 975
End
Begin VB.PictureBox PicTop
Align = 1 'Align Top
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 360
Left = 0
Picture = "FrmLv.frx":0CCE
ScaleHeight = 360
ScaleWidth = 11400
TabIndex = 2
Top = 0
Width = 11400
Begin ProXPViewer.TMcmdbutton TMcmdClose
Height = 255
Left = 120
TabIndex = 3
Top = 40
Width = 255
_ExtentX = 450
_ExtentY = 450
XpButton = 1
Caption = "X"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 0
End
Begin MSComctlLib.ProgressBar pb1
Height = 240
Left = 360
TabIndex = 4
Top = 400
Visible = 0 'False
Width = 12015
_ExtentX = 21193
_ExtentY = 423
_Version = 393216
Appearance = 0
Scrolling = 1
End
Begin VB.Image Image1
Height = 255
Left = 480
Picture = "FrmLv.frx":585D
Stretch = -1 'True
Top = 40
Visible = 0 'False
Width = 255
End
End
Begin VB.PictureBox PicThumb
AutoRedraw = -1 'True
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 3840
ScaleHeight = 75.077
ScaleMode = 0 'User
ScaleWidth = 75.077
TabIndex = 1
Top = 360
Visible = 0 'False
Width = 975
End
Begin MSComctlLib.ListView Lv1
Height = 5775
Left = 0
TabIndex = 0
Top = 360
Width = 11295
_ExtentX = 19923
_ExtentY = 10186
Arrange = 1
MultiSelect = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
OLEDragMode = 1
OLEDropMode = 1
PictureAlignment= 5
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
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
OLEDragMode = 1
OLEDropMode = 1
NumItems = 6
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "文件名称"
Object.Width = 3528
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Alignment = 1
SubItemIndex = 1
Text = "大小"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "类型"
Object.Width = 3528
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "编辑日期"
Object.Width = 4233
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "属性"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "CRC32"
Object.Width = 2540
EndProperty
End
Begin MSComctlLib.ImageList ImgList1
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
MaskColor = 12632256
_Version = 393216
End
End
Attribute VB_Name = "FrmLv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/10/12
'描 述:极速数码照片查看播放工具 Ver 2.02
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Option Explicit
Private Sub Form_Activate()
FrmMdi.sbStatusBar.Panels(3).Text = Lv1.ListItems.Count & " 个对象"
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
FrmMdi.PicPreview.Picture = LoadPicture
FrmMdi.PicPreview.Cls
End Sub
Private Sub Form_Resize()
On Error Resume Next
Lv1.Top = PicTop.ScaleHeight
Lv1.Height = Me.ScaleHeight - PicTop.ScaleHeight
pb1.Width = PicTop.ScaleWidth - pb1.Left - 20
Lv1.Width = Me.ScaleWidth
Lv1.Arrange = lvwAutoTop
End Sub
Private Sub Lv1_AfterLabelEdit(Cancel As Integer, NewString As String)
Dim retval As Long
retval = DiskOps(Lv1.SelectedItem.Key, Caption & NewString, F_Rename, 1)
If retval = 183 Then
Cancel = -1
Else
Lv1.SelectedItem.Text = NewString
Lv1.SelectedItem.Key = Caption & NewString
End If
End Sub
Private Sub Lv1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
Lv1.SortKey = ColumnHeader.index - 1
If (Lv1.Sorted = False) Then
Lv1.Sorted = True
Lv1.SortOrder = 0
Else
If (Lv1.SortOrder = 0) Then
Lv1.SortOrder = 1
Else
Lv1.SortOrder = 0
End If
End If
End Sub
Private Sub Lv1_DblClick()
Dim fpreview As FrmPreview
Set fpreview = New FrmPreview
FileSelect = Lv1.SelectedItem.Key
fpreview.Show
With fpreview
.LoadPV FileSelect
.CurrentPic = Lv1.SelectedItem.index
.LoadLv
End With
Set fpreview = Nothing
End Sub
Private Sub Lv1_ItemClick(ByVal item As MSComctlLib.ListItem)
Dim i%, j%
For i% = 1 To Lv1.ListItems.Count
If Lv1.ListItems(i%).Selected Then j% = j% + 1
Next i%
FrmMdi.sbStatusBar.Panels(1).Text = ""
FrmMdi.sbStatusBar.Panels(2).Text = ""
FrmMdi.sbStatusBar.Panels(3).Text = j% & " 个对象"
If j% = 1 Then
FrmMdi.sbStatusBar.Panels(1).Text = item.Text
FrmMdi.sbStatusBar.Panels(2).Text = SetBytes(item.Tag)
FrmMdi.LoadPreview item.Key
FrmMdi.ShowExif item.Key
End If
End Sub
Sub RefreshLv(npath As String)
On Error Resume Next
Me.MousePointer = 11
Set Lv1.Icons = Nothing
CreateThumbs npath, Val(ThumbnailSize) '96
AddFiles npath
Me.MousePointer = 0
End Sub
Sub AddFiles(Path As String)
On Error Resume Next
Dim itmx As ListItem
Dim fso, F, fc, fj, f1
Dim i%
Dim xcrc As clsCRC
If ChkCRC Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -