ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

System Menu IDs


Q: The Help, Keyboard, and Application menus at the right of the Macintosh menu bar don't have text titles that can be included in a command string in the way that "File" or "Edit" can be. Do these menus always have the same menu ID?

A: Yes. The menu IDs of the Help, Keyboard, and Application menus are always the same, so the menus can always be identified by their IDs via a call to GetMenuHandle:

enum
{
    kMenuHelpID             = -16490, // value also in "Balloons.h"
    kMenuKeyboardID         = -16491,
    kMenuApplicationID      = -16489
};

Note that passing kMenuHelpID to GetMenuItemHandle may obtain the menu handle of the global help menu, which is generally not what you want. To customize the Help menu, call HMGetHelpMenuHandle.

Further Reference:

Inside Macintosh: Menu Manager
Inside Macintosh: Help Manager

[Dec 22 1998]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.