In the MDI Engine application the following error is thrown when the zoom control is added to the toolbar placed on the child form at design: "Unable to get the window handle for the 'AxToolbarControl' control. Windowless ActiveX controls are not supported".
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM009978
已提交
June 28, 2007
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.2
编程语言
VB.Net
修正版本
9.3
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
If toolbar needs to placed on the child form then zoom control can be added programatically in Form_load event of the child form and re-set the buddy control of the toolbar:AxToolbarControl1.AddItem("esriControls.ControlsMapZoomToolControl", -1, -1, False, -1, ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconOnly)AxToolbarControl1.SetBuddyControl(AxMapControl1.Object)