#include <IDynamicMenu.h>
|
| enum | { kDefaultIID = IID_IDYNAMICMENU } |
| |
Provide a mechanism for menu items to rebuild before being displayed. Typical response is to add/remove actions, and add/remove/rename menus.
- See Also
- IActionManager
- IMenuManager
| virtual void IDynamicMenu::RebuildMenu | ( | ActionID | dynamicActionID, | | | IPMUnknown * | widget = nil | | ) | | |
| pure virtual |
Rebuild a dynamic menu to add/remove/change its items.
- Parameters
| dynamicActionID | ID of menu hit just before this method is called. |
| widget | contains the widget that invoked this action. May be nil. e.g. Useful to use as a basis for Utils<IWidgetUtils>()->QueryRelatedWidget(...) to find widgets in a panel after its popup menu is hit. NB: Don't assume it's a widget from your panel (menu scripting may access any menu at any time). |
Implemented in DynMnuDynamicMenu.