#include <MenuItem.h>
Inheritance diagram for wkgl::MenuItem:

Public Methods | |
| MenuItem (const char *label) | |
| Creates a new menu item. | |
| virtual | ~MenuItem () |
| virtual HMENU | getMenuHandle () |
| Returns the system handle for this item. | |
| virtual UINT | getCommand () |
| Returns the command identifier of this item. | |
| virtual char * | getLabelText () |
| Returns the label of this item. | |
| virtual BOOL | fireMenuEvents (UINT message) |
| Calls all the callbacks found in MenuItem::mcallbacks. | |
| virtual void | addMenuCallBack (MENUCALLBACK mcallback) |
| Adds a menu callback. | |
| virtual BOOL | create (MenuItem *parent) |
| Creates the menu item. | |
Protected Attributes | |
| HMENU | hmenu |
| The system handle to the menu item, can be NULL. | |
| String * | label |
| The label of the menu. | |
| UINT | command |
| The command id of the menu. | |
| std::vector< MENUCALLBACK > | mcallbacks |
| The callbacks to use for this item. | |
Static Protected Attributes | |
| UINT | command_inc = 40001 |
| Increments for every item created. | |
|
|
Creates a new menu item.
|
|
|
|
|
|
Adds a menu callback.
|
|
|
Creates the menu item.
Reimplemented in wkgl::Menu, and wkgl::MenuBar. |
|
|
Calls all the callbacks found in MenuItem::mcallbacks.
|
|
|
Returns the command identifier of this item.
|
|
|
Returns the label of this item.
|
|
|
Returns the system handle for this item.
|
|
|
The command id of the menu.
|
|
|
Increments for every item created.
|
|
|
The system handle to the menu item, can be NULL.
|
|
|
The label of the menu.
|
|
|
The callbacks to use for this item.
|
1.2.18