📄 commandbarmenu.cs
字号:
using System;
using System.Windows.Forms;
using System.Drawing;
using UtilityLibrary.Menus;
namespace UtilityLibrary.CommandBars
{
/// <summary>
/// Summary description for PopopMenu.
/// </summary>
public class CommandBarMenu : ContextMenu
{
// This is just to keep track of the selected
// menu as well as hold the menuitems in the menubar
Menu selectedMenuItem = null;
public CommandBarMenu(MenuItem[] items) : base(items)
{
}
internal Menu SelectedMenuItem
{
set { selectedMenuItem = value; }
get { return selectedMenuItem; }
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
return base.ProcessCmdKey(ref msg, keyData);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -