Important: The information in this document is obsolete and should not be used for new development.
SetMenuBar
Use theSetMenuBar
procedure 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
GetMenuBar
orGetNewMBar
.DESCRIPTION
TheSetMenuBar
procedure copies the given menu list to the current menu list. As withGetMenuBar
,SetMenuBar
doesn't copy the menu records, just the menu list (which contains handles to the menu records).You can use
SetMenuBar
to restore a menu list that you previously saved usingGetMenuBar
or to set the current menu list to a menu list created byGetNewMBar
.The
SetMenuBar
procedure sets only the current menu list; to update the menu bar according to the new menu list, use theDrawMenuBar
procedure.