#include <MenuBar.h>
◆ MenuBar()
◆ ~MenuBar()
virtual MenuBar::~MenuBar |
( |
| ) |
|
|
virtual |
◆ addMenu()
void MenuBar::addMenu |
( |
const wstring & | menuName | ) |
|
Adds a new menu to the menu bar.
- Parameters
-
menuName | The display name of the menu (e.g., "File"). |
◆ addMenuItem()
void MenuBar::addMenuItem |
( |
const wstring & | menuName, |
|
|
long | actionId, |
|
|
const wstring & | text ) |
Adds a new item to a specified menu.
- Parameters
-
menuName | The menu to add the item to. |
actionId | Action identifier for this item (used for command handling). |
text | Text label for the menu item. |
◆ addMenuSeparator()
void MenuBar::addMenuSeparator |
( |
const wstring & | menuName | ) |
|
Adds a separator item to a specified menu.
- Parameters
-
menuName | The menu to add the separator to. |
◆ setMenu()
Sets the constructed menu bar on a window.
- Parameters
-
hWnd | Handle to the window on which to set the menu. |
The documentation for this class was generated from the following file: