码迷,mamicode.com
首页 > 其他好文 > 详细

arcMap 进度条

时间:2014-06-30 12:11:17      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:des   get   cti   c   for   io   

private void kk()
{
IProgressDialogFactory progressDialogFactory = new ProgressDialogFactoryClass();
ITrackCancel trackCancel = new CancelTrackerClass();
IProgressDialog2 progressDialog = (IProgressDialog2)progressDialogFactory.Create(trackCancel, m_hookHelper.ActiveView.ScreenDisplay.hWnd);

progressDialog.CancelEnabled = true;
progressDialog.Description = "My Progress Dialog";
progressDialog.Title = "Get Stepping...";
progressDialog.Animation = esriProgressAnimationTypes.esriProgressGlobe;

IStepProgressor stepProgressor = progressDialog as IStepProgressor;
stepProgressor.MinRange = 0;
stepProgressor.MaxRange = 100000;
stepProgressor.StepValue = 1;
stepProgressor.Message = "Hey!";

progressDialog.ShowDialog();

bool canContinue = true;

for (int i = 0; i < 100000; i++)
{
canContinue = trackCancel.Continue();
if (canContinue)
{
stepProgressor.Step();
}
else
{
progressDialog.HideDialog();
return;
}

}

progressDialog.HideDialog();
}

arcMap 进度条,布布扣,bubuko.com

arcMap 进度条

标签:des   get   cti   c   for   io   

原文地址:http://www.cnblogs.com/gisoracle/p/3813921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!