插件片段代码
2015-04-15 15:19:17 访问(1357) 赞(0) 踩(0)
if(poWatchContextMenu == null)
{
_CommandBars commandBars = Application.CommandBars;
CommandBar vsBarProject = Application.CommandBars["Code Window"];
poWatchContextMenu = vsBarProject.Controls.Add(MsoControlType.msoControlButton, 1, "", 1, true);
poWatchContextMenu.Caption = "My Watch";
poWatchContextMenu.TooltipText = "";
CommandBarEvents menuItemHandler = (CommandBarEvents)Application.DTE.Events.get_CommandBarEvents(poWatchContextMenu);
menuItemHandler.Click += new _dispCommandBarControlEvents_ClickEventHandler(Watch_Click);
}
上一条:
下一条:
版权声明:
如果本站的资源使用了您的作品,请联系我们,我们会及时的注明
本站所有的资源均为免费自由下载,目的是让大家学习和交流
由于收集过程中几经转载,所以很多作品的原作者不详
如果您不愿在本站展示,请联系我们,我们会及时删除
相关评论
发表评论