Freigeben über


HH_DISPLAY_TOPIC command

Opens a help topic in a specified help window.

If a window type is not specified, a default window type is used. If the window type or default window type is open, the help topic replaces the current topic in the window.

pszFile dwData
Specifies a compiled help (.chm) file, or a specific topic within a compiled help file. To specify a defined window type, insert a greater-than (>) character followed by the name of the window type.
Specifies NULL or a pointer to a topic within a compiled help file.

Example

HWND hwnd =
   HtmlHelp(
             GetDesktopWindow(),
             "c:\\help.chm::/intro.htm>mainwin",
             HH_DISPLAY_TOPIC,
             NULL) ;

Return Value

The handle (hwnd) of the help window.

Remarks

  • For backward compatibility with WinHelp(), HH_DISPLAY_TOPIC and HH_HELP_FINDER provide the same functionality.
  • A default help window contains only the Topic pane and is not a three-pane Help Viewer.

About Commands

HH_HELP_CONTEXT