⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandbarmenu.cs

📁 c#编写的仿OUTLOOK工具条的Winform菜单
💻 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 + -