helpmenu.frm
来自「VB6.0安装软件.代码和安装软件一起.用起来很不错.」· FRM 代码 · 共 60 行
FRM
60 行
VERSION 5.00
Begin VB.Form frmHelpMenu
Caption = "Form1"
ClientHeight = 2652
ClientLeft = -9996
ClientTop = 4056
ClientWidth = 4800
LinkTopic = "Form1"
ScaleHeight = 2652
ScaleWidth = 4800
Begin VB.Menu mnuHelp
Caption = "帮助(&H)"
Begin VB.Menu mnuHelpContents
Caption = "目录(&C)"
End
Begin VB.Menu mnuHelpSearch
Caption = "搜索帮助在(&S)..."
End
Begin VB.Menu mnuHelpBar1
Caption = "-"
End
Begin VB.Menu mnuHelpAbout
Caption = "关于 MyApp(&A)..."
End
End
End
Attribute VB_Name = "frmHelpMenu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Private Sub mnuHelpAbout_Click()
MsgBox "About Box Code goes here!"
' frmAbout.Show vbModal
End Sub
Private Sub mnuHelpContents_Click()
On Error Resume Next
Dim nRet As Integer
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
If Err Then
MsgBox Err.Description
End If
End Sub
Private Sub mnuHelpSearch_Click()
On Error Resume Next
Dim nRet As Integer
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 261, 0)
If Err Then
MsgBox Err.Description
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?