Carbon


Menu Definition IDs

Header: Menus.h

enum {
    textMenuProc = 0,
    hMenuCmd = 27,
    hierMenu = -1,
    kInsertHierarchicalMenu = -1,
    mctAllItems = -98,
    mctLastIDIndic = -99
};

Constant descriptions

textMenuProc

The menu definition ID for menus that are not Appearance-compliant.

hMenuCmd
hierMenu
kInsertHierarchicalMenu
mctAllItems
mctLastIDIndic

A menu definition ID is supplied to the menu resource or a menu-creation function such as NewMenu to specify which menu definition function to use in creating the menu. The menu definition ID contains the resource ID of the menu definition function.

Menu definition IDs are changed with Appearance Manager 1.0 to support Appearance-compliant menus and menu bars. When mapping is enabled, the pre-Appearance menu definition ID textmenuProc will be mapped to kMenuStdMenuProc, its Appearance-compliant equivalent.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)