Invoking a button during a map being refreshed causes MapControl to halt drawing before finishing.
上次发布: August 25, 2014ArcGIS Engine
漏洞 ID 编号
NIM041722
已提交
January 17, 2009
上次修改时间
June 5, 2024
适用范围
ArcGIS Engine
找到的版本
9.3
操作系统
Windows OS
操作系统版本
XP
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
For the scenario as described, the following code can be put in MainForm_Load so that mouse clicks do not halt a redraw.Dim cancelTracker As ESRI.ArcGIS.esriSystem.ITrackCancel cancelTracker = Me.axMapControl1.TrackCancel() cancelTracker.CancelOnClick = FalseThere is a snippet and lots of samples at the following location (for the engine developer) ms-help://MS.VSCC.v90/MS.VSIPCC.v90/ESRI.EDNv9.3/esriSystem/html/ITrackCancel.htm