Copying the Help-Related String Resources

In this procedure you copy the command IDs for Help-related menu items.

To edit Help-related string resources

  1. Open the String Table resource for both Scribble and HelpApp, resizing both editor windows so they do not overlap.

  2. Locate the AFX_IDS_IDLEMESSAGE string in both tables, noting the difference in the captions.

    For an application without help, AppWizard defines the default status-bar prompt to be “Ready”. This is the string displayed in the status bar when no other command prompt is being displayed. This string resource is identified as AFX_IDS_IDLEMESSAGE.

  3. Select AFX_IDS_IDLEMESSAGE in Scribble’s string table, and click Properties from the Edit menu to open the String Properties window.

  4. Edit the Caption so that it matches that in the HelpApp version of this string resource: For Help, press F1.

  5. Next, copy the following strings from the HelpApp String Table to Scribble’s String Table:

    AFX_IDS_HELPMODEMESSAGE, ID_CONTEXT_HELP, and ID_HELP

    The copying procedure is similar to the procedures for copying menus and accelerators. To copy several contiguous strings, hold the SHIFT key down while selecting the strings. Then hold the CTRL key down while dragging the selected strings to the new window.

    The AFX_IDS_HELPMODEMESSAGE prompt displays in the status bar while the application is in help mode. The ID_CONTEXT_HELP prompt displays when the mouse pauses over the help mode toolbar button.

    Notice that Scribble’s string table already contains the ID_HELP_FINDER string, representing the prompt that displays for the Help Topics command on the Help menu. This was copied when you copied the Help Topics menu item.

    The ID_HELP command is called when the user presses F1.

  6. Close the String Table resources.