| menu - menu item to enable |
|
Re-enables a menu item disabled with DisableMenu. The item loses its greyed-out look and can be picked again, producing menu-action events ($1001) as normal. Menu items start out enabled, so this is the second half of state-driven menus: the document gains unsaved changes, so Save comes back to life. For items on a window's menu bar, call UpdateWindowMenu afterwards so the native bar redraws with the new state; popup menu items simply show the change the next time the popup opens. Query the current state with MenuEnabled. The world editor shell sample shows the menu-driven editor pattern this belongs to. See also: DisableMenu, MenuEnabled, CheckMenu, UpdateWindowMenu, CreateMenu. |