Important: The information in this document is obsolete and should not be used for new development.
SetMenuBar
Use theSetMenuBarprocedure to set the current menu list to a specified menu list.
PROCEDURE SetMenuBar (menuList: Handle);
menuList- A handle to a menu list that specifies the menus for a menu bar. You should specify a handle returned by
GetMenuBarorGetNewMBar.DESCRIPTION
TheSetMenuBarprocedure copies the given menu list to the current menu list. As withGetMenuBar,SetMenuBardoesn't copy the menu records, just the menu list (which contains handles to the menu records).You can use
SetMenuBarto restore a menu list that you previously saved usingGetMenuBaror to set the current menu list to a menu list created byGetNewMBar.The
SetMenuBarprocedure sets only the current menu list; to update the menu bar according to the new menu list, use theDrawMenuBarprocedure.