共用方式為


Copying the Help Accelerator Resources

Next, copy the accelerator resources for the menu items.

To copy the accelerator keys for Help resources

  1. Open the Accelerator table resource, IDR_MAINFRAME, from both your project and HasHelp, resizing the accelerator editor windows, as described in Copying the Help Menu Resources, so they do not overlap.

  2. Select the ID_HELP command from the HasHelp Accelerator table.

  3. Hold down the CTRL key while you drag this entry to your project's accelerator editor window.

    It doesn't matter where in the window you drop the entry. This copies the accelerator keys (F1 and SHIFT+F1) for the Help menu item to your project.

  4. Repeat this procedure for the ID_CONTEXT_HELP command.

    This maps to the help mode toolbar button, described later in this lesson, in Copying the Help Mode Toolbar Button.

  5. Close both accelerator editor windows.

See Also

Concepts

Copying Help-Specific Resources to Your Project