|
Public Member Functions |
|
| HMenu (int32 id=0) |
| ErrCode | AddItem (int32 nCmd, StringPtr pstrLabel, uint32 uFlags=0, bool bEnabled=true) |
| | Adds a new item to the menu.
|
| ErrCode | AddSeparator (void) |
| | Adds a separator to the current menu.
|
| ErrCode | Create (int32 nID, HANDLE hWnd=NULL) |
| | Create a new menu.
|
| ErrCode | EnableItem (int32 nCmd, bool bEnable=true) |
| | Enables (or disables) the menu item for a given command.
|
| widget_menu * | GetMenuPtr (void) const |
| | Returns a ptr to the underlying widget_menu structure.
|
| ErrCode | SetItemText (int32 nCmd, StringPtr pstrLabel) |
| | Sets the menu item label for a given command.
|
Protected Types |
|
typedef widget_menu_item * | MenuItemPtr |
|
typedef HMap< int32, MenuItemPtr > | MenuItemMap |
Protected Member Functions |
| MenuItemPtr | getMenuItem (int32 nCmd) |
| | Returns a ptr to the item for a given command.
|
Protected Attributes |
|
MenuItemMap | m_items |
| | STL map of menu items.
|
Friends |
|
class | HMenuBar |