Important: The information in this document is obsolete and should not be used for new development.
InvalMenuBar
Use theInvalMenuBarprocedure to invalidate the menu bar.
PROCEDURE InvalMenuBar;DESCRIPTION
TheInvalMenuBarprocedure marks the menu bar as changed and in need
of updating. When the Event Manager scans update regions for regions that require updating, the Event Manager also checks to determine whether the menu bar
requires updating (because of a call toInvalMenuBar). If the menu bar needs updating, the Event Manager calls theDrawMenuBarprocedure to draw the menu bar.You can use
InvalMenuBarinstead ofDrawMenuBarto minimize blinking in the menu bar. For example, if you have several application-defined routines that can change the enabled state of a menu and each callsDrawMenuBar, you can replace the calls toDrawMenuBarwith calls toInvalMenuBar. In this way the menu bar is redrawn only once instead of multiple times in quick succession. If you need to make immediate changes to the menu bar, useDrawMenuBar. If you want to redraw the menu bar at most once each time through your event loop, useInvalMenuBar. TheInvalMenuBarprocedure is available only in System 7.