21
edits
Changes
→MNode
</syntaxhighlight></big>
===MNode===
MNode holds to main about an Item in the menut:# The CMenuItem object# The index of this ItemMNode is a fully private class and is only accessible by CMenu.
====Attributes====
<big><syntaxhighlight lang="cpp">
CMenuItem* _item;
<big><syntaxhighlight lang="cpp">
Holds the address of a dynamically allocated CMenuItem
</syntaxhighlight></big>
unsigned int _index;
<big><syntaxhighlight lang="cpp">
Holds the index (sequence -1) number of the '''CMenuItem''' in the '''CMenu'''.
</syntaxhighlight></big>
MNode* _next;
MNode* _prev;
====Constructor/Destructor====
<big><syntaxhighlight lang="cpp">
MNode(CMenuItem* item,unsigned int index, MNode* prev, MNode* next = ((MNode*)0));
</syntaxhighlight></big>
Sets the corresponding attributes to the values of the arguments.
<big><syntaxhighlight lang="cpp">
~MNode(void);
</syntaxhighlight></big>
deletes the '''_item'''
===CMenu===