GuiReferenceSetCurrentTaskProgress
在当前 Reference View 实例中设置百分比进度条和一些状态文本。这可以向用户指示某个操作正在进行中,例如搜索/排序。
void GuiReferenceSetCurrentTaskProgress(int progress, const char* taskTitle);
参数
progress 表示百分比进度条值的整数。
taskTitle 表示向用户指示状态或进度的文本字符串的 const char。
返回值
此函数不返回值。
示例
GuiReferenceSetCurrentTaskProgress(0,"开始搜索,请稍候...");
// 执行某些操作
GuiReferenceSetCurrentTaskProgress(50,"正在搜索,请稍候...");
// 执行其他操作
GuiReferenceSetCurrentTaskProgress(100,"搜索完成。");
// 完成