我发现vs2008的考虑的很周到 , 点击右键可以在资源管理器中打开文件夹, 所以,针对VS2005,KeelKit 会在项目的右键添加 [在Windows资源管理器中打开文件夹]菜单,
代码如下:
public static CommandBarEvents menuItemHandler;
public static bool AddOpenFloderFoVs2005()
{
if (chDTE.Version != "8.0") return true ;
CommandBars cmdBars = (CommandBars)( Common.chDTE .DTE.CommandBars);
CommandBar vsBarProject = cmdBars["Project"];
CommandBarControl menuItem = vsBarProject.Controls.Add(MsoControlType.msoControlButton, 1, "", 2, true);
menuItem.Caption = "在Windows资源管理器中打开文件夹";
menuItem.TooltipText = menuItem.Caption;
menuItemHandler = (CommandBarEvents)Common.chDTE.DTE.Events.get_CommandBarEvents(menuItem);
menuItemHandler.Click += new _dispCommandBarControlEvents_ClickEventHandler(menuItemHandler_Click);
return true;
}