zoukankan      html  css  js  c++  java
  • ae右键菜单

    private IToolbarMenu m_ToolbarMenu;

               //Create a new ToolbarMenu
                m_ToolbarMenu = new ToolbarMenuClass();
                //Share the ToolbarControl's command pool
                m_ToolbarMenu.CommandPool = axToolbarControl1.CommandPool;
                //Set the hook to the PageLayoutControl
                m_ToolbarMenu.SetHook(axMapControl1);

                //Add commands to the ToolbarMenu
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomInTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomOutTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapPanTool", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapFullExtentCommand", -1, -1, true, esriCommandStyles.esriCommandStyleIconAndText);
                m_ToolbarMenu.AddItem("esriControls.ControlsMapZoomToLastExtentForwardCommand", -1, -1, false, esriCommandStyles.esriCommandStyleIconAndText);
      
                axToolbarControl1.SetBuddyControl(axMapControl1);
                axTOCControl1.SetBuddyControl(axMapControl1);
                axToolbarControl1.Enabled = true;
                axMapControl1.Enabled = true;
  • 相关阅读:
    ARP:地址解析协议,RARP
    pip 安装psutil 报错 error: command 'gcc' failed with exit status 1
    linux shell 控制脚本
    linux shell 呈现数据
    linux shell 处理用户输入
    shell结构化命令
    centos7 安装配置 squid作为正向代理
    linux基本脚本
    linux文件权限
    模拟垃圾分布
  • 原文地址:https://www.cnblogs.com/zhangjun1130/p/1421042.html
Copyright © 2011-2022 走看看