In this procedure you copy the command IDs for Help-related menu items.
To edit Help-related string resources
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.
For Help, press F1
.
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.