添加
右键的控件
将控件添加至axtoccontrol
双击进入点击事件
private void 缩放至图层ToolStripMenuItem_Click(object sender, EventArgs e){axMapControl1.ActiveView.FullExtent = m_Layer.AreaOfInterest;axMapControl1.ActiveView.Refresh();axTOCControl1.Update();}
添加axtoccotrol的鼠标事件
主要是获取当前点击的图层
private void axTOCControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.ITOCControlEvents_OnMouseDownEvent e){esriTOCControlItem pItem = esriTOCControlItem.esriTOCControlItemNone;IBas