2. 製作目錄表、索引表
按照內容的相互關係及次序建立目錄表,乙個目錄項對應乙個幫助主題,乙個幫助主題可對應乙個html頁;設計包含關鍵字的索引表讓使用者更快地獲得所需的資訊,乙個關鍵字可對應乙個html頁。將設計好的html頁與幫助主題目錄項及關鍵字索引建立對應關係。
一般製作應用程式幫助系統時可根據程式的選單來組織目錄表。主選單對應目錄,而將子選單對應子目錄,葉選單對應目錄項。可給每乙個選單項乙個對應關鍵字。
function long htmlhelpa(long hwnd,string lphelpfile,long wcommand,any dwdata) library "hhctrl.ocx"
/ hwnd 呼叫該函式的窗體控制代碼
//pszfile 幫助檔案的名稱和位置
//ucommand 幫助型別
//dwdata 與ucommand相匹配的附加引數
//定義ucommand 常數
// const hh_display_topic = &h0 主題
// const hh_display_index=&h2 關鍵字
// const hh_help_context = &hf
// const hh_display_search= &h3
// const hh_display_text_popup= &he
function long htmlhelpa(long hwnd,string lphelpfile,long wcommand,ulong dwdata) library "hhctrl.ocx"
function long htmlhelpa(long hwnd,string lphelpfile,long wcommand,string dwdata) library "hhctrl.ocx"
constant long hh_display_topic = 0 // 主題
constant long hh_display_index=2 // 關鍵字
constant long hh_help_context = 15 //主題id
constant long hh_display_search= 3
constant long hh_display_text_popup= 14
string ls_helpfile='e:/documents and settings/administrator/桌面/help/pb8.chm'
htmlhelpa(handle(parent),ls_helpfile,hh_help_context,1009)
htmlhelpa(handle(parent),ls_helpfile,hh_display_index,'chapter191')
如何呼叫HTML格式的幫助檔案
問 我做了乙個html格式的幫助檔案,在powerbuilder中該如何呼叫它呢?答 用run 函式或用windows中的api函式htmlhelp 這個函式駐留在htmlhelp activex控制項hhctrl.ocx中。定義api function long htmlhelpa long hw...
CHM幫助檔案
在visual c 6中呼叫html help沒有現成的函式,需要呼叫htmlhelp 這個api函式。而在呼叫這個函式之前,還需要在你的工程中加上htmlhelp的庫和標頭檔案 1.指定htmlhelp.h的路徑。選擇選單 project settings.開啟 project settings ...
VB程式中呼叫CHM幫助檔案
visual basic程式中呼叫chm幫助檔案的方法。方法三 使用shell函式 private sub cmdhelp click shell hh.exe help.chm vbnormalfocus help.chm為指定的幫助檔案,可包含路徑。end sub 方法四 使用htmlhelp函...