HWND HtmlHelp(
HWND hwndCaller,
LPCSTR pszFile,
UINT uCommand,
DWORD dwData) ;
Parameter | Description |
---|---|
hwndCaller |
Specifies the handle (hwnd) of the window calling HtmlHelp(). The help window is owned by this window.
When the help window is closed, HtmlHelp() will return focus to the owner unless the owner is the desktop. If hwndCaller is the desktop, then the operating system determines where focus is returned. In addition, if HtmlHelp() sends any notification messages from the help window, they are sent to hwndCaller as long as you have enabled notification message tracking in the help window definition. |
pszFile |
Depending on the uCommand value, specifies the file path to either a compiled help (.chm) file, or a topic file within a specified help file.
A window type name can also be specified, preceded with a greater-than (>) character. If the specified command does not require a file, this value may be NULL. |
uCommand | Specifies the command to complete. |
dwData | Specifies any data that may be required, based on the value of the uCommand parameter. |
The following example calls the HH_DISPLAY_TOPIC command to open the help file named Help.chm and display its default topic in the help window named Mainwin. Generally, the help window specified in this command is a standard HTML Help Viewer.
HWND hwnd =
HtmlHelp(
GetDesktopWindow(),
"c:\\Help.chm::/Intro.htm>Mainwin",
HH_DISPLAY_TOPIC,
NULL) ;
About the HTML Help API | |