CAD的StatusBar

(Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu 转载请标明来源)

 

acedSetStatusBarProgressMeter: 设置显示内容

acedSetStatusBarProgressMeterPos: 设置进度百分比

acedRestoreStatusBar: 使用完毕后,把statusBar归还给CAD

 

// 设置初值

acedSetStatusBarProgressMeter(_T("操作执行中,按Esc取消"),0,100);

acedSetStatusBarProgressMeterPos(0);

 

// 中途可以不停的更新进度

acedSetStatusBarProgressMeterPos();

 

// 结束时,归还statusbar给CAD

acedRestoreStatusBar();

 

/* acedSetStatusBarProgressMeter

 * Creates a progress meter on AutoCAD status bar.

 * Returns 0 if it successfully creates the label and progress meter.

 * Otherwise -1

 */

int acedSetStatusBarProgressMeter(constACHAR* pszLabel,int nMinPos,

                                  int nMaxPos);

 

/* acedSetStatusBarProgressMeter

 * Call this with a positive value within the range specified to set

 * the current position of the status bar. 

 * Pass a negative number to add an amount to the current position (relative).

 */

int acedSetStatusBarProgressMeterPos(intnPos);

 

/* acedRestoreStatusBar

 * Resets AutoCAD status bar

 */

void acedRestoreStatusBar();

 

(Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu 转载请标明来源)

 

你可能感兴趣的:(CAD的StatusBar)