[Classes] [Prev] [Next] [Methods]

CMenuItem

Methods Index

Heritage
Description
Usage
Public Methods
Constructor and Destructor Methods
State Methods

CMenuItem


Heritage

Superclass: CMenu

Subclasses: None


Description

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.


Usage

CMenubar *aMenubar = GetMenuBar();

CMenuItem aMenuItem("~Paste", PASTE_TAG, 'P',
CMenu::ENABLED | CMenu::CHECKABLE);

aMenuBar->FindSubmenu(MENU_WINDOW)->
Append(aMenuItem);
-OR-

aMenuItem.SetEnabled(FALSE);

aMenuBar->DoUpdate();

Public Methods

Constructor and Destructor Methods

CMenuItem(void);
CMenuItem(const CStringRW &theText, 
MENU_TAG theTag,
short theMnemonic,
long theFlags = ENABLED);
CMenuItem(const CMenuItem &theMenuItem);
CMenuItem &operator= (const CMenuItem &theMenuItem);
virtual ~CMenuItem();

State Methods

BOOLEAN IsSeparator(void) const;


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.