摘要:
private IToolbarMenu m_menuMap = null;//全局变量private IMapControl3 m_mapControl = null;主窗体Load事件中加入: m_mapControl = (IMapControl3)this.axMapControl1.Object; m_menuMap = new ToolbarMenuClass();//ICommand命令m_menuMap.AddItem( new ControlsMapFullExtentCommand(), -1, 0, false, esriCommandStyles.... 阅读全文
摘要:
private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IRgbColor pRgbColor; IActiveView pActiveView; IRubberBand pRubberBand; IElement pElement; IGraphicsContainer pGraphicsContainer;//起到容... 阅读全文
摘要:
private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e){ ILineElement pLineElement;IActiveView pActiveView;IRgbColor pRgbColor; IRubberBand pRubberBand; ISimpleLineSymbol pSimpleLineSymbol; IPolyline p... 阅读全文
摘要:
private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IElement pElement; IMarkerElement pMarkerElement; ISimpleMarkerSymbol pSimpleMarkerSymbol;IRgbColor pRgbColor; pSimpleMa... 阅读全文