Working with IHelpWindow Parts

The following tasks are associated with using an IHelpWindow* part in visual composition. Tasks that are common to many parts are described in related topics.

Defining the title
To define the title for your help window, set the Title property in the IHelpWindow* property sheet. Enter the title in the value column.

Indicating the help type
To indicate whether you use OS/2-style help or native system help, open the style property in the IHelpWindow* property sheet.

If you indicate that you are are using native system help, the help type is assumed as follows:

System Help type
OS/2 Information Presentation Facility (IPF)
Windows Rich Text Format (RTF)

Identifying help files

To identify the help (.hlp) files for your application, set the Help libraries property in the IHelpWindow* property sheet. Enter file names, separated by spaces, in the value column. If you do not specify a path with the file names, the environment help path is used.

Associating help with a frame window
To enable help for primary frame windows, they must be associated with a help window. If you use IPF help, you should also associate secondary windows with the help window. The help window is automatically associated with the primary frame window in the composite part that contains the IHelpWindow* part.

Associate a secondary frame window with the help window when the secondary window is created.

Identifying a help panel
To link each frame window and control with its help panel, set the helpId property in its property sheet. Enter the help panel ID in the value column. The panel ID is the resource number specified for the the help panel heading.


Related procedures
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers Properties
Setting Part Framing Properties
Working with VisualAge User Interface Parts

Related references
IHelpWindow
Property Settings -- IHelpWindow
Portability -- IHelpWindow