#include <imenus.h>
Public Types |
|
enum | ActionMode
{ AM_INACTIVE = 0, AM_SEPARATOR, AM_ITEM, AM_FN, AM_SUBMENU, AM_ITEM_SUBMENU } |
enum | { setTitle, getTitle, setUseCustomTitle, getUseCustomTitle, setDisplayFlat, getDisplayFlat, getIsSeparator, getSubMenu, getMacroScript } |
typedef int | IMenuItemIcon |
typedef void(* | ActionFn )(void) |
typedef void(* | PreDisplayCB )(IMenuItem &menuItem) |
Public Member Functions |
|
virtual void | SetIMenuLocalContext (IMenuLocalContext *pIMenuLocalContext)=0 |
virtual ActionMode | GetActionMode () const =0 |
virtual bool | ExecuteAction () const =0 |
virtual void | ActAsSeparator ()=0 |
virtual bool | IsSeparator () const =0 |
virtual void | SetActionItem (ActionItem *pActionItem)=0 |
virtual ActionItem * | GetActionItem () const =0 |
virtual void | SetActionFn (ActionFn actionFn)=0 |
virtual const ActionFn | GetActionFn () const =0 |
virtual void | SetSubMenu (IMenu *menu)=0 |
virtual IMenu * | GetSubMenu ()=0 |
virtual void | SetPreDisplayCB (PreDisplayCB preDisplayCB)=0 |
virtual const PreDisplayCB | GetPreDisplayCB () const =0 |
virtual void | Display (bool leftToRight)=0 |
virtual MCHAR | GetAccelerator ()=0 |
virtual void | SetIcon (MaxIcon *pMaxIcon)=0 |
virtual const MaxIcon * | GetIcon () const =0 |
virtual void | SetChecked (bool checked)=0 |
virtual bool | GetChecked ()=0 |
virtual void | SetHighlighted (bool highlighted)=0 |
virtual bool | GetHighlighted () const =0 |
virtual void | SetUseCustomTitle (bool useCustomTitle)=0 |
virtual bool | GetUseCustomTitle () const =0 |
virtual void | SetDisplayFlat (bool displayFlat)=0 |
virtual bool | GetDisplayFlat () const =0 |
virtual void | PostMenuInteraction ()=0 |
typedef int IMenuItemIcon |
typedef void(* ActionFn)(void) |
typedef void(* PreDisplayCB)(IMenuItem &menuItem) |
enum ActionMode |
{ AM_INACTIVE = 0, AM_SEPARATOR, AM_ITEM, AM_FN, AM_SUBMENU, AM_ITEM_SUBMENU };
anonymous enum |
virtual void SetIMenuLocalContext | ( | IMenuLocalContext * | pIMenuLocalContext | ) | [pure virtual] |
virtual ActionMode GetActionMode | ( | ) | const [pure virtual] |
virtual bool ExecuteAction | ( | ) | const [pure virtual] |
virtual void ActAsSeparator | ( | ) | [pure virtual] |
virtual bool IsSeparator | ( | ) | const [pure virtual] |
virtual void SetActionItem | ( | ActionItem * | pActionItem | ) | [pure virtual] |
virtual ActionItem* GetActionItem | ( | ) | const [pure virtual] |
virtual void SetActionFn | ( | ActionFn | actionFn | ) | [pure virtual] |
virtual const ActionFn GetActionFn | ( | ) | const [pure virtual] |
virtual void SetSubMenu | ( | IMenu * | menu | ) | [pure virtual] |
virtual IMenu* GetSubMenu | ( | ) | [pure virtual] |
virtual void SetPreDisplayCB | ( | PreDisplayCB | preDisplayCB | ) | [pure virtual] |
virtual const PreDisplayCB GetPreDisplayCB | ( | ) | const [pure virtual] |
virtual void Display | ( | bool | leftToRight | ) | [pure virtual] |
virtual MCHAR GetAccelerator | ( | ) | [pure virtual] |
virtual void SetIcon | ( | MaxIcon * | pMaxIcon | ) | [pure virtual] |
virtual const MaxIcon* GetIcon | ( | ) | const [pure virtual] |
virtual void SetChecked | ( | bool | checked | ) | [pure virtual] |
virtual bool GetChecked | ( | ) | [pure virtual] |
virtual void SetHighlighted | ( | bool | highlighted | ) | [pure virtual] |
virtual bool GetHighlighted | ( | ) | const [pure virtual] |
virtual void SetUseCustomTitle | ( | bool | useCustomTitle | ) | [pure virtual] |
virtual bool GetUseCustomTitle | ( | ) | const [pure virtual] |
virtual void SetDisplayFlat | ( | bool | displayFlat | ) | [pure virtual] |
virtual bool GetDisplayFlat | ( | ) | const [pure virtual] |
virtual void PostMenuInteraction | ( | ) | [pure virtual] |