设置GlobeControl当前的工具
来源:互联网 发布:黑龙江消防网通知通告 编辑:程序博客网 时间:2024/05/16 04:04
[C#]
ICommand command = new ControlsGlobeZoomInOutToolClass();
command.OnCreate(axGlobeControl1.Object);
if (command.Enabled == true)
{
axGlobeControl1.CurrentTool = (ITool) command;
}
[Visual Basic .NET]
Dim pCommand As ICommandpCommand = New ControlsGlobeZoomInOutToolClass
pCommand.OnCreate(axGlobeControl1.Object)
If pCommand.Enabled = True Then
axGlobeControl1.CurrentTool = pCommand
End If
[C++ Qt]
ICommandPtr cmd(CLSID_ControlsGlobeZoomInOutTool);
IDispatchPtr disp;
m_aeIpGlobeCtr->get_Object(&disp);
cmd->OnCreate(disp);
VARIANT_BOOL bEnable;
HRESULT hr = cmd->get_Enabled(&bEnable);
if(bEnable)
{
m_aeIpGlobeCtr->putref_CurrentTool(IToolPtr(cmd));
}
ICommand command = new ControlsGlobeZoomInOutToolClass();
command.OnCreate(axGlobeControl1.Object);
if (command.Enabled == true)
{
axGlobeControl1.CurrentTool = (ITool) command;
}
[Visual Basic .NET]
Dim pCommand As ICommandpCommand = New ControlsGlobeZoomInOutToolClass
pCommand.OnCreate(axGlobeControl1.Object)
If pCommand.Enabled = True Then
axGlobeControl1.CurrentTool = pCommand
End If
[C++ Qt]
ICommandPtr cmd(CLSID_ControlsGlobeZoomInOutTool);
IDispatchPtr disp;
m_aeIpGlobeCtr->get_Object(&disp);
cmd->OnCreate(disp);
VARIANT_BOOL bEnable;
HRESULT hr = cmd->get_Enabled(&bEnable);
if(bEnable)
{
m_aeIpGlobeCtr->putref_CurrentTool(IToolPtr(cmd));
}
- 设置GlobeControl当前的工具
- GlobeControl轨道飞行工具和显示指北针
- GlobeControl中设置图层基本高程--ArcGlobe+C#
- 考查当前的 XML 工具
- 获取当前设置的版本
- Qt设置生成exe为当前输出目录的工具类(原理win API调用)卲发所写
- 设置devices的工具
- ArcGlobe三维开发之十九——GlobeControl与MapControl的二三维联动
- [C#] 记录当前系统电池电量的工具
- 查看当前Git工具的版本
- 查看当前Git工具的版本
- 设置当前Activity背景是当前使用的壁纸
- 设置当前Activity背景是当前使用的壁纸
- globecontrol图层加载
- GlobeControl 做鹰眼图
- Python当前的默认编码设置setdefaultencoding
- 如何设置当前线程的共享数据?
- DB2中设置当前会话的Schema
- 分享一篇幅提高MySQL数据库查询效率的技巧文章大家欣赏
- error C3872: '0x3000': this character is not allowed in an identifier
- 绝好的MongoDB学习资料之八. Replication (2)
- android 自动更新数据示例
- 硬盘原理及常识
- 设置GlobeControl当前的工具
- dojo类机制简介
- FUSE简介
- Zend Framework教程-Resources官方示例翻译
- 进程、轻量级进程和线程的一些点
- 绝好的MongoDB学习资料之九. Sharding (1)
- 错误日志输出
- Shell中的IFS解惑
- 启动界面