首页 > 其他 > 详细

arcMap 进度条

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

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 进度条

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!