[options]
compatibility=1.1 or later'版本
compiled file=vbp_htmlhelpmaker.chm'編譯後的檔案名稱.路徑相對與本工程的具體路徑.
contents file=table of contents.hhc '内容表檔案.hhc
default window=main'預設窗體
default topic=vbp_htmlhelpmaker.htm'預設主題.即打開一個 chm後首先顯示的頁面.
display compile progress=no '編譯時是否顯示進度
index file=index.hhk '索引檔案路徑.具體路徑相對與目前工程路徑.
language=0x804 中文(中國)
[windows]
main="vbp_htmlhelpmaker","table of contents.hhc","index.hhk","vbp_htmlhelpmaker.htm","vbp_htmlhelpmaker.htm", "d:/project/coderhelper/htmlhelpwizard/help/_homepage.htm","公司首頁","d:/project/coderhelper/htmlhelpwizard/help/_produce.htm","産品支援",0x2120,,0xc000e,[271,372,593,566],,,,,,,0
'main窗體的屬性.
[files]'此字段中放置所有需要的html檔案.路徑相對與目前工程路徑
vbp_htmlhelpmaker.htm
vbp_htmlhelpmaker/htmlhelpmaker.htm
[alias]'常量映射.每個商量對應一個 html檔案.具體常量指定的常數由map字段的内容指定.
hp_vbp_htmlhelpmaker=vbp_htmlhelpmaker.htm
hp_htmlhelpmaker=vbp_htmlhelpmaker/htmlhelpmaker.htm
hp_htmlhelpmaker_chhtmlhelpmaker=vbp_htmlhelpmaker/htmlhelpmaker/chhtmlhelpmaker.htm
[map]'指定包含檔案.
#include include.h
[infotypes]其它.在此不做詳細介紹.
.h檔案說明.
#define hp_vbp_htmlhelpmaker 1000
#define hp_htmlhelpmaker 1001
#define hp_htmlhelpmaker_chhtmlhelpmaker 1002
#define hp_htmlhelpmaker_chhtmlhelpmaker_show 1003
#define hp_htmlhelpmaker_frmconfirm 1004
#define hp_htmlhelpmaker_frmconfirm_txtconst 1005
這些常量對應常數.當使用htmlhelp函數調用時,你可以指定該 常數.将為你打開常量所對應的html檔案.關于htmlhelp使用方法請參見htmlhelp.chm::/helpref.htm 的介紹.
在vb中.helpcontextid 屬性的值應該是以上常數值.在此對象上按f1後,将自動打開程式幫助檔案chm中的html頁面.此頁面是由以上值來映射的.
内容表檔案是采用html格式來辨別的.
<!doctype html public "-//ietf//dtd html//en">
<html>
<head>
<meta name="generator" content="microsoft&reg; html help workshop 4.1">
<!-- sitemap 1.0 -->
</head><body>
<object type="text/site properties">
<param name="window styles" value="0x227">
</object>
<ul>'縮進辨別.每擁有一個縮進辨別.将使得内容表在編譯後顯示時向後縮進.
<li> <object type="text/sitemap">
<param name="name" value="介紹">'每個條目的名稱.
<param name="local" value="vbp_htmlhelpmaker.htm">'該名稱所對應的檔案.相對與目前工程路徑.
<param name="imagenumber" value="2">'圖示樣式代碼.
'一般來說,一個樹結構開始時由一個對象是不用縮進标志.在其子項前必須有一個縮進标志
'每個條目以<object>為标記對!
......
<param name="name" value="上一步(?">
<param name="local" value="vbp_htmlhelpmaker/htmlhelpmaker/frmwizard/cmdnav.htm">
<param name="imagenumber" value="11">
<param name="name" value="完成按鈕">
<param name="local" value="vbp_htmlhelpmaker/htmlhelpmaker/frmconfirm/cmdok.htm">
</ul>
</body></html>
索引檔案格式
<ul>'注意,在索引檔案中不建議使用縮進标志.如果使用.将會帶來很多檢視上的麻煩.大家可以看到.在微軟的幫助chm中.基本是沒有在索引中使用縮進方式的.但是部分msdn的chm中使用了該.這是當内容量大而複雜.一些對象不屬于一個體系但是名稱又相同.是以就出現了子項!
<ul>
<param name="name" value="htmlhelpmaker">'名稱.
<param name="local" value="vbp_htmlhelpmaker/htmlhelpmaker.htm">'對應的檔案.
<param name="windowname" value="main">'打開的視窗名稱.