#include <vgui_mfc_utils.h>
Only one instance of the class is allowed
Definition at line 34 of file vgui_mfc_utils.h.
Public Member Functions | |
| vgui_mfc_utils () | |
| Constructor. | |
| ~vgui_mfc_utils () | |
| Destructor. | |
| HMENU | add_submenu (const vgui_menu &menu) |
| Create a MFC sub-menu from the given vgui_menu. | |
| void | set_menu (const vgui_menu &menu) |
| Sets the menu of the application window. | |
| CMenu * | set_popup_menu (const vgui_menu &menu) |
| Create popup menu. | |
| void | delete_last_popup_menu_callbacks () |
| Delete the callback functions from the last popup menu. | |
| virtual void | menu_dispatcher (UINT nID) |
| Called within message service routine of vgui_mfc_mainfrm. | |
Static Public Member Functions | |
| static vgui_mfc_utils * | instance () |
| (Create if necessary and) return singleton instance of this class. | |
Public Attributes | |
| HACCEL | AccelTable |
| Menu accelerator table - this defines menu shortcuts. | |
Private Member Functions | |
| void | add_menu_accelerator (const vgui_menu_item item, const WORD function_id, vcl_string &the_menu_name) |
| Add keyboard shortcut for this menu item to accelerator table (accels). | |
Private Attributes | |
| int | item_count |
| Number of menu items. | |
| vcl_vector< vgui_command * > | callbacks |
| List of commands to be called by menus. | |
| vcl_vector< ACCEL > | accels |
| List of menu accelerators. | |
| vcl_vector< CMenu * > | menus_to_be_deleted |
| List of menus to be deleted when we are finished:. | |
| bool | first_popup |
| first time a popup menu was created. | |
| int | last_item_count |
| last item_count before a popup menu is created. | |
|
|
Constructor.
Definition at line 53 of file vgui_mfc_utils.h. |
|
|
Destructor.
Definition at line 41 of file vgui_mfc_utils.cxx. |
|
||||||||||||||||
|
Add keyboard shortcut for this menu item to accelerator table (accels). Also add text to the_menu_name for the shortcut. Definition at line 49 of file vgui_mfc_utils.cxx. |
|
|
Create a MFC sub-menu from the given vgui_menu.
Definition at line 79 of file vgui_mfc_utils.cxx. |
|
|
Delete the callback functions from the last popup menu.
Definition at line 220 of file vgui_mfc_utils.cxx. |
|
|
(Create if necessary and) return singleton instance of this class.
Definition at line 34 of file vgui_mfc_utils.cxx. |
|
|
Called within message service routine of vgui_mfc_mainfrm.
Definition at line 25 of file vgui_mfc_utils.cxx. |
|
|
Sets the menu of the application window.
Definition at line 120 of file vgui_mfc_utils.cxx. |
|
|
Create popup menu. Make sure to call delete after its use otherwise MLK!!! Definition at line 171 of file vgui_mfc_utils.cxx. |
|
|
List of menu accelerators.
Definition at line 43 of file vgui_mfc_utils.h. |
|
|
Menu accelerator table - this defines menu shortcuts.
Definition at line 74 of file vgui_mfc_utils.h. |
|
|
List of commands to be called by menus.
Definition at line 40 of file vgui_mfc_utils.h. |
|
|
first time a popup menu was created.
Definition at line 81 of file vgui_mfc_utils.h. |
|
|
Number of menu items.
Definition at line 37 of file vgui_mfc_utils.h. |
|
|
last item_count before a popup menu is created.
Definition at line 84 of file vgui_mfc_utils.h. |
|
|
List of menus to be deleted when we are finished:.
Definition at line 78 of file vgui_mfc_utils.h. |
1.4.4