Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LMenu Class Reference
["Menus"]

#include <LMenu.h>

Inheritance diagram for LMenu:

Inheritance graph
[legend]
Collaboration diagram for LMenu:

Collaboration graph
[legend]
List of all members.

Public Methods

 LMenu (ResIDT inMENUid)
 LMenu (ResIDT inMENUid, Str255 inTitle)
 ~LMenu ()
CMenu * GetMFCmenu () const
ResIDT GetMenuID () const
Int16 IndexFromCommand (CommandT) const
int InstallInto (CMenu *)
void RemoveSelf ()
void AppendMenu (const Str255)
short CountMItems ()
void CheckItem (short whichItem, bool checkit)
void SetMenuItemText (int itemNum, const Str255)
void GetMenuItemText (int itemNum, Str255)
void DeleteMenuItem (int itemNum)
void SetNthSubmenuID (unsigned int N, ResIDT inMENUid)
LMenu * FetchMenu (ResIDT inMENUid)
bool UnmapMenu (const LMenu *inMenu)

Static Public Methods

Boolean IsSyntheticCommand (CommandT inCommand, ResIDT &outMenuID, Int16 &outMenuItem)
CommandT NextSyntheticCommand ()
void SetFirstSyntheticCommand (CommandT)

Public Attributes

MenuHandle GetMacMenuH ()

Protected Types

enum  { kOffsetNeverSet = 0 }

Protected Methods

virtual LMenu * MakeMenu (unsigned int inOffset, ResIDT)
void AppendMap ()
void RemoveMap (unsigned int mapIndex)
void UpdateMenuOffsetsInserting (unsigned int)
void UpdateMenuOffsetsRemoving (unsigned int)

Protected Attributes

ResIDT mMENUid
unsigned int mZeroBasedSubmenuOffset
p2mString mTitle
LMenu * mParent
unsigned int mNumMaps
p2mMapmMaps

Static Protected Attributes

CommandT sFirstSyntheticID = 5000
CommandT sNextSyntheticID = LMenu::sFirstSyntheticID
OOF_ExpandableLongArray sSyntheticCommandMenus

Friends

class LMenuBar
class p2mMenuOwner

Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
kOffsetNeverSet 


Constructor & Destructor Documentation

LMenu::LMenu ResIDT    inMENUid
 

LMenu::LMenu ResIDT    inMENUid,
Str255    inTitle
 

LMenu::~LMenu  
 


Member Function Documentation

void p2mMenuOwner::AppendMap   [protected, inherited]
 

void LMenu::AppendMenu const    Str255
 

void LMenu::CheckItem short    whichItem,
bool    checkit
 

short LMenu::CountMItems  
 

void LMenu::DeleteMenuItem int    itemNum
 

LMenu * p2mMenuOwner::FetchMenu ResIDT    inMENUid [inherited]
 

ResIDT LMenu::GetMenuID   const [inline]
 

void LMenu::GetMenuItemText int    itemNum,
Str255   
 

CMenu * LMenu::GetMFCmenu   const
 

Int16 LMenu::IndexFromCommand CommandT    const
 

int LMenu::InstallInto CMenu *   
 

Boolean LMenu::IsSyntheticCommand CommandT    inCommand,
ResIDT   outMenuID,
Int16 &    outMenuItem
[static]
 

LMenu * LMenu::MakeMenu unsigned int    inOffset,
ResIDT   
[protected, virtual]
 

Implements p2mMenuOwner.

CommandT LMenu::NextSyntheticCommand   [static]
 

void p2mMenuOwner::RemoveMap unsigned int    mapIndex [protected, inherited]
 

void LMenu::RemoveSelf  
 

void LMenu::SetFirstSyntheticCommand CommandT    [static]
 

void LMenu::SetMenuItemText int    itemNum,
const    Str255
 

void p2mMenuOwner::SetNthSubmenuID unsigned int    N,
ResIDT    inMENUid
[inherited]
 

bool p2mMenuOwner::UnmapMenu const LMenu *    inMenu [inherited]
 

void p2mMenuOwner::UpdateMenuOffsetsInserting unsigned    int [protected, inherited]
 

void p2mMenuOwner::UpdateMenuOffsetsRemoving unsigned    int [protected, inherited]
 


Friends And Related Function Documentation

friend class LMenuBar [friend]
 

friend class p2mMenuOwner [friend]
 


Member Data Documentation

MenuHandle LMenu::GetMacMenuH
 

p2mMap* p2mMenuOwner::mMaps [protected, inherited]
 

ResIDT LMenu::mMENUid [protected]
 

unsigned int p2mMenuOwner::mNumMaps [protected, inherited]
 

LMenu* p2mMenuOwner::mParent [protected, inherited]
 

p2mString LMenu::mTitle [protected]
 

unsigned int LMenu::mZeroBasedSubmenuOffset [protected]
 

CommandT LMenu::sFirstSyntheticID = 5000 [static, protected]
 

CommandT LMenu::sNextSyntheticID = LMenu::sFirstSyntheticID [static, protected]
 

OOF_ExpandableLongArray LMenu::sSyntheticCommandMenus [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jul 22 18:21:05 2002 for PP2MFC by doxygen1.2.17