Defining Help Tables as Resources

If help tables are defined as resources, they can be bound to the application's executable file, or they can reside in a dynamic link library (DLL).

If help tables are defined as resources in a dynamic link library, the application must call DosLoadModule to load the DLL before it calls WinCreateHelpInstance. When the application calls WinCreateHelpInstance, it passes the handle to the DLL and the resource ID of the help table in the HELPINIT structure.

The application can load a new help table residing in the DLL by either sending the HM_LOAD_HELP_TABLE message from its window procedure, or by calling WinLoadHelpTable. The application passes the handle to the DLL and the resource ID of the new help table.

A HELPTABLE resource contains a HELPITEM entry for each application window, dialog, and message box for which help is provided.

Each entry of a HELPTABLE resource contains:

A HELPSUBTABLE resource contains an entry for each item that can be selected in an application window. Each of these items is assumed to be a child window of the application window identified in the HELPTABLE resource. The HELPSUBTABLE should contain a single SUBITEMSIZE and a HELPSUBITEM for each control, child window, and menu item.

Each entry of a HELPSUBTABLE resource contains: