AnnSetAutoMenuItemEnable Example for C++ 4.0 and later
Note: This topic is for Document/Medical only.
// disable the Delete menu item from all the selected objects
m_LEAD1.AnnSetAutoMenuItemEnable(m_LEAD1.GetAnnContainer(), 0,
ANNAUTOTEXT_MENU_DELETE, ANNMENU_DISABLED, ANNFLAG_RECURSE |
ANNFLAG_SELECTED, "");
// disable the Delete menu item from all the ellipse objects
m_LEAD1.AnnSetAutoMenuItemEnable(m_LEAD1.GetAnnAutomation(), ANNOBJECT_ELLIPSE,
ANNAUTOTEXT_MENU_DELETE, ANNMENU_DISABLED, 0, "");