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;
  • 相关阅读:
    object detection物体检测基本概念
    anaconda python环境搭建
    Eclipse环境下添加package到工程的classpath
    34-使用函数实现-文件拷贝
    33-使用函数实现-斐波那契数列
    32-简单的位置参数
    31-分段进行文件拷贝
    30-Python文件拷贝
    29-简单的文件对象基础操作
    28-石头剪刀布:三局两胜
  • 原文地址:https://www.cnblogs.com/zhangjun1130/p/1421042.html
Copyright © 2011-2022 走看看