frmnavigate.frm
来自「通用书店管理系统」· FRM 代码 · 共 88 行
FRM
88 行
VERSION 5.00
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form frmNavigate
BorderStyle = 0 'None
ClientHeight = 4440
ClientLeft = 0
ClientTop = 0
ClientWidth = 8280
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4440
ScaleWidth = 8280
ShowInTaskbar = 0 'False
Begin SHDocVwCtl.WebBrowser webBrw1
Height = 4335
Left = 60
TabIndex = 0
Top = 60
Width = 8175
ExtentX = 14420
ExtentY = 7646
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser= 0
RegisterAsDropTarget= 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
NoWebView = 0 'False
HideFileNames = 0 'False
SingleClick = 0 'False
SingleSelection = 0 'False
NoFolders = 0 'False
Transparent = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = ""
End
End
Attribute VB_Name = "frmNavigate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Activate()
Me.WindowState = 2
Me.Caption = "导航窗口"
webBrw1.Left = 0
webBrw1.Height = Me.Height
webBrw1.Top = 0
webBrw1.Width = Me.Width
Exit Sub
End Sub
Private Sub Form_Load()
Me.webBrw1.Navigate App.Path & "\html\主界面.htm" '"\Navi1.htm"
End Sub
Private Sub webBrw1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
Dim proc As String
Dim i As Long
Dim j As Long
On Error GoTo err_proc
If InStr(1, URL, "主界面", vbTextCompare) > 0 Then
i = InStr(1, URL, "主界面", vbTextCompare)
End If
If InStr(1, URL, "@", vbTextCompare) > 0 Then
Cancel = True
i = InStr(1, URL, "@", vbTextCompare)
proc = Right(URL, Len(URL) - i)
proc = Left(proc, Len(proc) - 4)
If proc = "帮助" Then proc = "内容"
CallByName frmMain, proc & "_Click", VbMethod
End If
Exit Sub
err_proc:
MsgBox err.Number & err.Description, vbCritical, "错误"
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?