HTML Help Project (HHP) format—hhp文件格式

本文档详细介绍了HTML Help Workshop (HHW)使用的HTMLHelpProject (HHP)格式,包括选项配置、窗口设置等,指导如何正确配置并编译CHM文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

HTML Help Project (HHP) format

Preface

This is documentation on the HHP format used by MS' HTML Help Workshop (HHW) to compile CHM files. There are various titbits of info out there on the web, in Usenet & in the docs for various programs. So far I have not found a complete reference for this format.

This is file has the INI format.

HHW dies if any line is 1024 or more characters (not including CRLF).

Sections

[OPTIONS]

This is a variable=value section sorted by variable name (using memcmp), except for Custom tab, which occurs at the end.

Explanations for all the different [OPTIONS].
Variable & typeExplanationRecommended setting
Auto Index=bool  
Auto TOC=number  
Binary Index=bool Yes
Binary TOC=bool Yes
CITATION=string  
COMPRESS=number  
Compatibility=1.0|1.1 or later 1.1 or later
Compiled file=pathif this is not specified then hhp stem.chm will be used 
Contents file=path  
Create CHI file=bool  
Default Font=string, number, number  
Default Window=string  
Default topic=path  
Display compile notes=bool  
Display compile progress=bool  
Enhanced decompilation=bool  
Error log file=path  
Flat=bool No
Full text search stop list file=path  
IGNORE=string  
Index file=path  
Language=hex number string  
PREFIX=string  
Sample Staging Path=path  
Sample list file=path  
TMPDIR=string  
Title=string  
Custom tab="string", stringCan put multiple lines of this option to define more than one custom tab. 
DBCS=???If you find any thing about this please tell us.
???=???If you find any more please tell us about them.

[WINDOWS]

This is a variable=value section sorted by order of addition.

Each line has the following format:

string="string", "path", "path", "path", "path", "path", "string", "path", "string", number, number, [number, number, number, number], number, number, number, number, number, number, number

Summary of the arguments for each [WINDOWS] entry.
Argument numberExplanation
0The window type.
1The title bar text.
2The TOC file.
3The Index file.
4The Default file.
5The file shown when the Home button is pressed.
6The file shown when the Jump 1 button is pressed.
7The text of the Jump 1 button.
8The file shown when the Jump 2 button is pressed.
9The text of the Jump 2 button.
10A bit feild of navigation pane styles.
11Width of the navigation pane in pixels.
12A bit field of the buttons to show.
13Initial position of the window on the screen: [left, top, right, bottom].
14Style Flags. As set in the Win32 SetWindowLong & CreateWindow APIs.
15Extended Style Flags. As set in the Win32 SetWindowLong & CreateWindowEx APIs.
16Window show state. As set in the Win32 ShowWindow API.
17Whether or not the navigation pane is initially closed. 1 = closed, 0 = open
18The default navigation pane. 0 = TOC, 1 = Index, 2 = Search, 3 = Favorites, 4 = History (not implemented by HH), 5 = Author, 11-19 = Custom panes.
19Where the navigation pane tabs should be. 0 = Top, 1 = Left, 2 = Bottom & anything else is invalid (I imagine 3 = Right).
20ID to send in WM_NOTIFY messages.
??HHW currently accepts only 21 arguments. If you find any more please tell us about them.
Buttons to put in the HH toolbar.
ValueExplanationRecommended setting
0x00000002Hide/Show button hides/shows the navigation pane.On
0x00000004Back button.On
0x00000008Forward button.On
0x00000010Stop button.On
0x00000020Refresh button.On
0x00000040Home button.On
0x00000080Next button. Not implemented by HH.Off
0x00000100Previous button. Not implemented by HH.Off
0x00000200Notes button. Not implemented by HH.Off
0x00000400Contents button. Not implemented by HH.Off
0x00000800Locate button. Jumps to the current topic in the contents pane.On
0x00001000Options button.On
0x00002000Print button.On
0x00004000Index button. Not implemented by HH.Off
0x00008000Search button. Not implemented by HH.Off
0x00010000History button. Not implemented by HH.Off
0x00020000Favorites button. Not implemented by HH.Off
0x00040000Jump 1 button. Customisable text - Arg 7.Either
0x00080000Jump 2 button. Customisable text - Arg 9.Either
0x00100000Font button. Changes the size of the text shown in the IE HTML display pane.On
0x00200000Next button. Jumps to the next topic in the contents pane. Requires "Binary TOC=Yes".On
0x00400000Previous button. Jumps to the previous topic in the contents pane. Requires "Binary TOC=Yes".On
0x???00000The rest of the buttons either do nothing or are unknown. If you find out what others do please tell us.
Navigation pane styles.
ValueExplanationRecommended setting
0x00000001Automatically hide/show tri-pane window: when the help window has focus the navigation pane is visible, otherwise it is hidden.Off
0x00000002Keep the help window on top.Off
0x00000004No title barOff
0x00000008No default window styles (only HH_WINTYPE.dwStyles)Either
0x00000010No default extended window styles (only HH_WINTYPE.dwExStyles)Either
0x00000020Use a tri-pane windowOn
0x00000040No text on toolbar buttonsOn
0x00000080Post WM_QUIT message when window closesOff
0x00000100When the current topic changes automatically sync contents and index.On
0x00000200Send tracking notification messagesOff
0x00000400Include search tab in navigation paneOn
0x00000800Include history tab in navigation paneOff
0x00001000Include favorites tab in navigation paneOn
0x00002000Put current HTML title in title barOn
0x00004000Only display the navigation windowOff
0x00008000Don't display a toolbarOff
0x00010000MSDN MenuOff
0x00020000Advanced FTS UI.On
0x00040000After initial creation, user controls window size/positionOn
0x00080000Use custom tab #1Off
0x00100000Use custom tab #2Off
0x00200000Use custom tab #3Off
0x00400000Use custom tab #4Off
0x00800000Use custom tab #5Off
0x01000000Use custom tab #6Off
0x02000000Use custom tab #7Off
0x04000000Use custom tab #8Off
0x08000000Use custom tab #9Off
0x10000000The window type has a marginOn
0x?0000000The rest of the navigation pane styles either do nothing or are unknown. If you find out what others do please tell us.

[MERGE FILES]

This is a list of CHMs to merge this one with. See the Merge Files feature in the Features list for more information. Help 2 will only use Collections to merge CHMs.

[FILES]

This is a list of files that should be compiled into the CHM by the compiler. Files linked to from the TOC or Index or other HTML files will also be compiled into the CHM. It is known that Help 2 will only compile files listed to be put in the CHM.

[TEXT POPUPS]

This is a list of text files and header files that contain the text for various popups that can be displayed using the Popup command of the HH ActiveX control.

[INFOTYPES]

It is unknown how this section is formatted since the current version of HHW refuses to output anything in this section. I guess that the help viewer doesn't yet implement this feature. If you find a past or future version that does output this section please let us know.

[MAP]

Each line has the following format:

#define string number
or
#include path

[ALIAS]

This is a variable=value section sorted by the numerical value of the variable.

Each line has the following format:

number|string=path ; This is a comment
or
#include path

[SUBSETS]

It is unknown how this section is formatted since the current version of HHW refuses to output this section. I guess that the help viewer doesn't yet implement this feature. If you find a past or future version that does output this section please let us know.

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值