SavvyUI C++ UI Library
Loading...
Searching...
No Matches
MenuBar Class Reference

#include <MenuBar.h>

Public Member Functions

 MenuBar ()
virtual ~MenuBar ()
void addMenu (const wstring &menuName)
void addMenuItem (const wstring &menuName, long actionId, const wstring &text)
void addMenuSeparator (const wstring &menuName)
void setMenu (WinHandle hWnd)

Constructor & Destructor Documentation

◆ MenuBar()

MenuBar::MenuBar ( )

◆ ~MenuBar()

virtual MenuBar::~MenuBar ( )
virtual

Member Function Documentation

◆ addMenu()

void MenuBar::addMenu ( const wstring & menuName)

Adds a new menu to the menu bar.

Parameters
menuNameThe 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
menuNameThe menu to add the item to.
actionIdAction identifier for this item (used for command handling).
textText label for the menu item.

◆ addMenuSeparator()

void MenuBar::addMenuSeparator ( const wstring & menuName)

Adds a separator item to a specified menu.

Parameters
menuNameThe menu to add the separator to.

◆ setMenu()

void MenuBar::setMenu ( WinHandle hWnd)

Sets the constructed menu bar on a window.

Parameters
hWndHandle to the window on which to set the menu.

The documentation for this class was generated from the following file: