htmlhelp的问题

qiangtian 2003-08-25 01:20:14
用如下代码htmlhelp(Me.hWnd,"A.chm",0,0)
调出一个帮助文件,这个文件第一页不显示,提示该页无法显示
但是直接打开chm文件就没这个问题
请问如何解决?
...全文
44 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liushanyu 2003-08-25
  • 打赏
  • 举报
回复
Const HH_DISPLAY_TOPIC = &H0
htmlhelp(Me.hWnd,"A.chm",HH_DISPLAY_TOPIC,0)
射天狼 2003-08-25
  • 打赏
  • 举报
回复
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Label1_Click()
On Error GoTo Errhandle
ShellExecute Me.hwnd, "open", App.path & "\A.chm", vbNullString, vbNullString, 1
Exit Sub
Errhandle:
MsgBox Err.Description & "!", vbInformation
End Sub
rainstormmaster 2003-08-25
  • 打赏
  • 举报
回复
App.HelpFile = "c:\mc.chm"
SendKeys "{f1}"

1,486

社区成员

发帖
与我相关
我的任务
社区描述
VB API
社区管理员
  • API
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧