Important: The information in this document is obsolete and should not be used for new development.
DeleteMCEntries
Use theDeleteMCEntriesprocedure to delete one or all entries for a specific menu from your application's menu color information table. You can delete a menu item entry, a menu title entry, the menu bar entry, or all menu item entries of a specific menu. TheDeleteMCEntriesprocedure is also available as theDelMCEntriesprocedure.
PROCEDURE DeleteMCEntries (menuID: Integer; menuItem: Integer);
menuID- The menu ID that the
DeleteMCEntriesprocedure should use to determine which entry to delete from the menu color information table. Specify 0 in themenuIDparameter (and themenuItemparameter) to delete the menu bar entry. Specify the menu ID of a menu in the current menu list in themenuIDparameter and 0 in themenuItemparameter to delete 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 delete a specific menu item entry.menuItem- The menu item that the
DeleteMCEntriesprocedure should use to determine which entry to delete from the menu color information table. If you specify 0 in this parameter,DeleteMCEntriesdeletes either the menu bar entry or 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,DeleteMCEntriesdeletes a specific menu item entry. You can also delete all menu item entries for a specific menu from your application's menu color information table using this constant:CONST
mctAllItems = -98; {delete all menu item entries }
{ for the specified menu}DESCRIPTION
TheDeleteMCEntriesprocedure deletes a menu bar entry, a menu title entry, a menu item entry, or all menu item entries of a given menu, according to the values specified in themenuIDandmenuItemparameters. If theGetMCEntryfunction does not find the specified entry in your application's menu color information table, it does not delete the entry. Your application should not delete the last entry in your application's menu color information table.If any of the deleted entries changes the menu bar color or a menu title color, your application should call
DrawMenuBarto update the menu bar.