惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
D
Docker
GbyAI
GbyAI
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog

博客园 - GIS云中飞鹏

ArcGIS Server 9.3 REST基础教程 ArcGIS_系列视频教程::精品大放送 VS2005中删除最近打开的项目和文件的记录 [资源共享]C#+AE构建GIS桌面端应用系统框架-全代码 - GIS云中飞鹏 - 博客园 2008ESRI中国区域用户大会资料已经共享!!!^_^ 刻录机放入光盘,出现函数不正确的解决方法! ArcSDE初级教程下载 ArcIMS HTML Viewer开发经典教程:Customizing the HTML Viewer下载 “全国信息化工程师—GIS应用水平考试”考试复习资料下载! ArcObjects GIS应用开发——基于C#.NET--PDF下载 ArcGIS Unknown Spatial Reference问题解疑(转载) - GIS云中飞鹏 oracle 10g默认用户名、密码解锁 自己定制的SymbolSelectForm效果及VB.NET源码 ArcGIS Engine 怎样给PageLayout替换模板 用AE创建气泡式提示框的方法-VB.Net源码(转载) - GIS云中飞鹏 - 博客园 VS在Debug时检测到Loaderlock的解决办法 - GIS云中飞鹏 - 博客园 【ArcGIS Server 开发系列】Flyingis六大系列讲座精品PDF奉献 公司数据部培训讲义:ArcMap数字化培训教程 如何改变ArcIMS92图例字体大小中? - GIS云中飞鹏 - 博客园
在ArcGisEngine 开发中如何在Toolbar控件上添加Combobox等其...
GIS云中飞鹏 · 2008-07-09 · via 博客园 - GIS云中飞鹏

 在ArcGisEngine 开发中如何在Toolbar控件上添加Combobox等其他控件

如果在ESRI的Toolbar控件上添加一个Combobox 需要在Command类中实现IToolControl接口
在将指定控件的句柄做为 IToolControl.hwnd 返回即可
过程描述
public class MyCombobox:BaseCommand,IToolControl
{
private int _handle=0;
private ICompletionNotify _CompNotify;
public MyCombobox(int handle)
{
_handle = handle;
}

public override void OnCreate(object hook)
{
// TODO: 添加 SymbolType.OnCreate 实现

}
#region IToolControl 成员

public int hWnd
{
get
{
// TODO: 添加 SymbolType.hWnd getter 实现
return _handle;
}
}

public void OnFocus(ICompletionNotify complete)
{
_CompNotify = complete;
// TODO: 添加 SymbolType.OnFocus 实现
}

public bool OnDrop(ESRI.ArcGIS.SystemUI.esriCmdBarType barType)
{
// TODO: 添加 SymbolType.OnDrop 实现
if (barType == esriCmdBarType.esriCmdBarTypeToolbar )
{
return true;
}
else return false;
}

#endregion
}