MenuBar Class

Definition

Line 261 of System.Windows/Menu.cm

Inheritance

Constructors & Destructor

public MenuBar()
public MenuBar(MenuBarCreateParams& createParams)
public MenuBar(const Font& font_)

Member Functions

private void AddMenuBox()
public void AddMenuItem(MenuItem* menuItem)
public void CloseMenu()
private void CollectShortcuts()
public nothrow void DisableMenuKey()
internal void DoKeyDown(KeyEventArgs& args)
internal void DrawMenuItems(PaintEventArgs& args, bool drawSubItems, const Point& origin)
internal override nothrow MenuItem* GetFirstMenuItem() const
internal override nothrow MenuItem* GetLastMenuItem() const
internal override nothrow MenuItem* GetLatestMouseDownMenuItem() const
internal override nothrow MenuItem* GetMenuItemByAccessKey(wchar accessKey)
internal override nothrow MenuItem* GetOpenedMenuItem() const
internal override nothrow MenuItem* GetSelectedMenuItem() const
internal bool HandleAccessKey(wchar accessKey, Keys keyCode, bool& wantsKeys)
internal override void InvalidateMenu()
private void InvalidateParentRect(const Rect& parentRect)
internal override nothrow bool IsOpen() const
internal override nothrow MenuItem* LatestOpenedMenuItem() const
private void LocateMenuItems(Graphics& graphics, const Size& size)
private nothrow bool MenuBoxAdded() const
private inline nothrow bool MenuChanged()
private inline nothrow bool MenuInvalidated() const
public inline nothrow bool MenuKeyDisabled() const
internal void MouseDownInternal(MouseEventArgs& args)
internal void MouseEnterInternal()
internal void MouseLeaveInternal()
internal void MouseMoveInternal(MouseEventArgs& args)
internal void MouseUpInternal(MouseEventArgs& args)
protected override void OnKeyDown(KeyEventArgs& args)
protected override void OnMouseDown(MouseEventArgs& args)
protected override void OnMouseEnter()
protected override void OnMouseLeave()
protected override void OnMouseMove(MouseEventArgs& args)
protected override void OnMouseUp(MouseEventArgs& args)
protected override void OnPaint(PaintEventArgs& args)
private nothrow Control* ParentControl() const
public override void PrintWindowTree(int level)
private inline nothrow void ResetMenuChanged()
private inline nothrow void ResetMenuInvalidated()
public override nothrow void SetClosed()
internal override nothrow void SetLatestMouseDownMenuItem(MenuItem* menuItem)
internal override nothrow void SetLatestOpenedMenuItem(MenuItem* menuItem)
private nothrow void SetMenuBoxAdded()
internal override nothrow void SetMenuChanged()
internal override nothrow void SetMenuInvalidated()
public override nothrow void SetOpen()
internal override nothrow void SetSelectedMenuItem(MenuItem* selectedMenuItem_)
internal Color ShadowColor()

Enumerated Types

private enum Flags

Member Variables

private Container children
private Flags flags
private MenuItem* latestMouseDownMenuItem
private MenuItem* latestOpenedMenuItem
private MenuBox* menuBox
private MenuItem* selectedMenuItem
private HashMap<Keys, MenuItem*, Hasher<Keys>, EqualTo<Keys>> shortcuts

Constructor& Destructor Details

MenuBar Constructor

public MenuBar()

Definition
Line 281 of System.Windows/Menu.cm


MenuBar Constructor

public MenuBar(MenuBarCreateParams& createParams)

Definition
Line 284 of System.Windows/Menu.cm


MenuBar Constructor

public MenuBar(const Font& font_)

Definition
Line 275 of System.Windows/Menu.cm


Member Function Details

AddMenuBox Member Function

private void AddMenuBox()

Definition
Line 936 of System.Windows/Menu.cm


AddMenuItem Member Function

public void AddMenuItem(MenuItem* menuItem)

Definition
Line 307 of System.Windows/Menu.cm


CloseMenu Member Function

public void CloseMenu()

Definition
Line 290 of System.Windows/Menu.cm


CollectShortcuts Member Function

private void CollectShortcuts()

Definition
Line 618 of System.Windows/Menu.cm


DisableMenuKey Member Function

public nothrow void DisableMenuKey()

Definition
Line 880 of System.Windows/Menu.cm


DoKeyDown Member Function

internal void DoKeyDown(KeyEventArgs& args)

Definition
Line 418 of System.Windows/Menu.cm


DrawMenuItems Member Function

internal void DrawMenuItems(PaintEventArgs& args, bool drawSubItems, const Point& origin)

Definition
Line 401 of System.Windows/Menu.cm


GetFirstMenuItem Member Function

internal override nothrow MenuItem* GetFirstMenuItem()

Definition
Line 819 of System.Windows/Menu.cm


GetLastMenuItem Member Function

internal override nothrow MenuItem* GetLastMenuItem()

Definition
Line 833 of System.Windows/Menu.cm


GetLatestMouseDownMenuItem Member Function

internal override nothrow MenuItem* GetLatestMouseDownMenuItem()

Definition
Line 872 of System.Windows/Menu.cm


GetMenuItemByAccessKey Member Function

internal override nothrow MenuItem* GetMenuItemByAccessKey(wchar accessKey)

Definition
Line 847 of System.Windows/Menu.cm


GetOpenedMenuItem Member Function

internal override nothrow MenuItem* GetOpenedMenuItem()

Definition
Line 802 of System.Windows/Menu.cm


GetSelectedMenuItem Member Function

internal override nothrow MenuItem* GetSelectedMenuItem()

Definition
Line 864 of System.Windows/Menu.cm


HandleAccessKey Member Function

internal bool HandleAccessKey(wchar accessKey, Keys keyCode, bool& wantsKeys)

Definition
Line 632 of System.Windows/Menu.cm


InvalidateMenu Member Function

internal override void InvalidateMenu()

Definition
Line 563 of System.Windows/Menu.cm


InvalidateParentRect Member Function

private void InvalidateParentRect(const Rect& parentRect)

Definition
Line 393 of System.Windows/Menu.cm


IsOpen Member Function

internal override nothrow bool IsOpen()

Definition
Line 912 of System.Windows/Menu.cm


LatestOpenedMenuItem Member Function

internal override nothrow MenuItem* LatestOpenedMenuItem()

Definition
Line 798 of System.Windows/Menu.cm


LocateMenuItems Member Function

private void LocateMenuItems(Graphics& graphics, const Size& size)

Definition
Line 357 of System.Windows/Menu.cm


MenuBoxAdded Member Function

private nothrow bool MenuBoxAdded()

Definition
Line 928 of System.Windows/Menu.cm


MenuChanged Member Function

private inline nothrow bool MenuChanged()

Definition
Line 888 of System.Windows/Menu.cm


MenuInvalidated Member Function

private inline nothrow bool MenuInvalidated()

Definition
Line 900 of System.Windows/Menu.cm


MenuKeyDisabled Member Function

public inline nothrow bool MenuKeyDisabled()

Definition
Line 884 of System.Windows/Menu.cm


MouseDownInternal Member Function

internal void MouseDownInternal(MouseEventArgs& args)

Definition
Line 726 of System.Windows/Menu.cm


MouseEnterInternal Member Function

internal void MouseEnterInternal()

Definition
Line 439 of System.Windows/Menu.cm


MouseLeaveInternal Member Function

internal void MouseLeaveInternal()

Definition
Line 524 of System.Windows/Menu.cm


MouseMoveInternal Member Function

internal void MouseMoveInternal(MouseEventArgs& args)

Definition
Line 447 of System.Windows/Menu.cm


MouseUpInternal Member Function

internal void MouseUpInternal(MouseEventArgs& args)

Definition
Line 767 of System.Windows/Menu.cm


OnKeyDown Member Function

protected override void OnKeyDown(KeyEventArgs& args)

Definition
Line 422 of System.Windows/Menu.cm


OnMouseDown Member Function

protected override void OnMouseDown(MouseEventArgs& args)

Definition
Line 730 of System.Windows/Menu.cm


OnMouseEnter Member Function

protected override void OnMouseEnter()

Definition
Line 443 of System.Windows/Menu.cm


OnMouseLeave Member Function

protected override void OnMouseLeave()

Definition
Line 528 of System.Windows/Menu.cm


OnMouseMove Member Function

protected override void OnMouseMove(MouseEventArgs& args)

Definition
Line 451 of System.Windows/Menu.cm


OnMouseUp Member Function

protected override void OnMouseUp(MouseEventArgs& args)

Definition
Line 771 of System.Windows/Menu.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 320 of System.Windows/Menu.cm


ParentControl Member Function

private nothrow Control* ParentControl()

Definition
Line 380 of System.Windows/Menu.cm


PrintWindowTree Member Function

public override void PrintWindowTree(int level)

Definition
Line 312 of System.Windows/Menu.cm


ResetMenuChanged Member Function

private inline nothrow void ResetMenuChanged()

Definition
Line 896 of System.Windows/Menu.cm


ResetMenuInvalidated Member Function

private inline nothrow void ResetMenuInvalidated()

Definition
Line 908 of System.Windows/Menu.cm


SetClosed Member Function

public override nothrow void SetClosed()

Definition
Line 920 of System.Windows/Menu.cm


SetLatestMouseDownMenuItem Member Function

internal override nothrow void SetLatestMouseDownMenuItem(MenuItem* menuItem)

Definition
Line 876 of System.Windows/Menu.cm


SetLatestOpenedMenuItem Member Function

internal override nothrow void SetLatestOpenedMenuItem(MenuItem* menuItem)

Definition
Line 794 of System.Windows/Menu.cm


SetMenuBoxAdded Member Function

private nothrow void SetMenuBoxAdded()

Definition
Line 932 of System.Windows/Menu.cm


SetMenuChanged Member Function

internal override nothrow void SetMenuChanged()

Definition
Line 892 of System.Windows/Menu.cm


SetMenuInvalidated Member Function

internal override nothrow void SetMenuInvalidated()

Definition
Line 904 of System.Windows/Menu.cm


SetOpen Member Function

public override nothrow void SetOpen()

Definition
Line 916 of System.Windows/Menu.cm


SetSelectedMenuItem Member Function

internal override nothrow void SetSelectedMenuItem(MenuItem* selectedMenuItem_)

Definition
Line 868 of System.Windows/Menu.cm


ShadowColor Member Function

internal Color ShadowColor()

Definition
Line 268 of System.Windows/Menu.cm