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;
  • 相关阅读:
    A.2.5输入年,月,判断本月有多少天?
    A.1.2九九乘法表
    运算原理有点复杂,不懂。啊!求解释?
    A.1.1第一个输出程序“Hello World!”
    什么是 MVC ?
    要么滚回去,要么拼命
    创建Android的Hello World应用程序
    转载华硕2008年Java面试题
    Java 计算器实现
    Java 使用execute方法执行Sql语句
  • 原文地址:https://www.cnblogs.com/zhangjun1130/p/1421042.html
Copyright © 2011-2022 走看看