GetMCEntry
Use theGetMCEntryfunction to return information about an entry in your application's menu color information table. You can get information about the menu bar entry, a menu title entry, or a menu item entry.
FUNCTION GetMCEntry (menuID: Integer; menuItem: Integer) : MCEntryPtr;
menuID- The menu ID that the
GetMCEntryfunction should use to return information about the menu color information table. Specify 0 in themenuIDparameter (and themenuItemparameter) to get the menu bar entry. Specify the menu ID of a menu in the current menu list in themenuIDparameter and 0 in themenuItemparameter to get a specific menu title entry. Specify the menu ID of a menu in the current menu list in themenuIDparameter and an item number in themenuItemparameter to get a specific menu item entry.menuItem- The menu item that the
GetMCEntryfunction should use to return information about the menu color information table. If you specify 0 in this parameter,GetMCEntryreturns either the menu bar entry or the menu title entry, depending on the value of themenuIDparameter. If you specify the item number of a menu item in this parameter and the menu ID of a menu in the current menu list in themenuIDparameter,GetMCEntryreturns a specific menu item entry.DESCRIPTION
TheGetMCEntryfunction returns a menu bar entry, a menu title entry, or a menu item entry according to the values specified in themenuIDandmenuItemparameters. If
theGetMCEntryfunction finds the specified entry in your application's menu color information table, it returns a pointer to a record of data typeMCEntry. If the specified entry is not found,GetMCEntryreturnsNIL.
- WARNING
- The menu color information table is relocatable, so the pointer returned by the
GetMCEntryfunction may not be valid across routines that may move or purge memory. Your application should make a copy of the menu color entry record if necessary.![]()
SEE ALSO
"The Menu Color Information Table Record" beginning on page 3-100 describes the entries in a menu color information table.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help