📄 pdfview.frm
字号:
VERSION 5.00
Object = "{05BFD3F1-6319-4F30-B752-C7A22889BCC4}#1.0#0"; "AcroPDF.dll"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1
Caption = "PDF浏览器"
ClientHeight = 11895
ClientLeft = 165
ClientTop = 450
ClientWidth = 14310
Icon = "PDFView.frx":0000
LinkTopic = "Form1"
ScaleHeight = 11895
ScaleWidth = 14310
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin VB.Timer Timer1
Left = 6540
Top = 480
End
Begin MSComctlLib.ImageList ImageList1
Left = 3780
Top = 360
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 6
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":0442
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":0554
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":0666
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":0778
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":72AA
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "PDFView.frx":DDDC
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 1
Top = 0
Width = 14310
_ExtentX = 25241
_ExtentY = 741
ButtonWidth = 609
ButtonHeight = 582
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 6
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "设置文件夹"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "上一张"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "下一张"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "播放"
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "停止播放"
ImageIndex = 5
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.ToolTipText = "播放速度"
ImageIndex = 6
Style = 5
BeginProperty ButtonMenus {66833FEC-8583-11D1-B16A-00C0F0283628}
NumButtonMenus = 10
BeginProperty ButtonMenu1 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "1"
EndProperty
BeginProperty ButtonMenu2 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "2"
EndProperty
BeginProperty ButtonMenu3 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "3"
EndProperty
BeginProperty ButtonMenu4 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "4"
EndProperty
BeginProperty ButtonMenu5 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "5"
EndProperty
BeginProperty ButtonMenu6 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "6"
EndProperty
BeginProperty ButtonMenu7 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "7"
EndProperty
BeginProperty ButtonMenu8 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "8"
EndProperty
BeginProperty ButtonMenu9 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "9"
EndProperty
BeginProperty ButtonMenu10 {66833FEE-8583-11D1-B16A-00C0F0283628}
Text = "10"
EndProperty
EndProperty
EndProperty
EndProperty
End
Begin AcroPDFLibCtl.AcroPDF AcroPDF1
Height = 11715
Left = 60
TabIndex = 0
Top = 660
Width = 14055
_cx = 5080
_cy = 5080
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public sss As Integer
Private Sub Form_Activate()
Form1.Caption = "PDF浏览器 (...\" & Mid(Form1.AcroPDF1.src, 55) & ")"
End Sub
Private Sub Form_Load()
'Form2.Hide
Form1.AcroPDF1.setShowToolbar False
Timer1.Interval = 2
End Sub
Private Sub Form_Resize()
Form1.AcroPDF1.Left = 50
Form1.AcroPDF1.Top = 300
Form1.AcroPDF1.Width = Form1.Width - 200
Form1.AcroPDF1.Height = Form1.Height - 700
End Sub
Private Sub Form_Unload(Cancel As Integer)
sss = 5
ST = Timer
Do While DoEvents
If Timer - ST >= 1 Then Exit Do
Loop
End
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
On Error Resume Next
On Button.Index - 5 GoTo end_sub
sss = Button.Index
Select Case Button.Index
Case 1
Form2.Show
Case 2
f_list = Form2.File1.ListIndex
If f_list > 1 Then
Form2.File1.ListIndex = f_list - 1
Form1.AcroPDF1.LoadFile (Form2.File1.Path & "\" & Form2.File1.List(f_list - 1))
End If
Case 3
f_list = Form2.File1.ListIndex
If f_list < Form2.File1.ListCount Then
Form2.File1.ListIndex = f_list + 1
Form1.AcroPDF1.LoadFile (Form2.File1.Path & "\" & Form2.File1.List(f_list + 1))
End If
Case 4
f_list = Form2.File1.ListIndex
For k = f_list + 1 To Form2.File1.ListCount
ST_TIME = Timer
Do While DoEvents
If Timer - ST_TIME >= Timer1.Interval Then Exit Do
If sss = 5 Then Exit Sub
Loop
Form2.File1.ListIndex = k
Form1.AcroPDF1.LoadFile (Form2.File1.Path & "\" & Form2.File1.List(k))
Form1.Caption = "PDF浏览器 (...\" & Mid(Form1.AcroPDF1.src, 55) & ")"
Next
End Select
end_sub:
End Sub
Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Timer1.Interval = CInt(ButtonMenu.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -