| Methods Index |
CMenuSubclasses: None
CMenuItem generalizes menu items. The MENUSeparator utility object is already built and can be used instead of building a CMenuItem with a NULLString as title.
CMenubar *aMenubar = GetMenuBar();-OR-
CMenuItem aMenuItem("~Paste", PASTE_TAG, 'P',
CMenu::ENABLED | CMenu::CHECKABLE);
aMenuBar->FindSubmenu(MENU_WINDOW)->
Append(aMenuItem);
aMenuItem.SetEnabled(FALSE);
aMenuBar->DoUpdate();
CMenuItem(void);
CMenu.
CMenuItem(const CStringRW &theText,
MENU_TAG theTag,
short theMnemonic,
long theFlags = ENABLED);
CMenu.
CMenuItem(const CMenuItem &theMenuItem);
CMenu.
CMenuItem &operator= (const CMenuItem &theMenuItem);
theMenuItem into a newly created CMenuItem object.
virtual ~CMenuItem();
BOOLEAN IsSeparator(void) const;