Oma_Ot_Progress_Proc_Set()
摘要
设置在读取 OT 表时用于管理进度条的过程。
语法
Oma_Ot_Progress_Proc_Set (progress_proc)
| 参数 | 类型 | 说明 |
|---|---|---|
progress_proc |
OmaT_Ot_Progress_Proc |
用户编写的、用于管理 OT 读取进度条的过程;传入 PRGC_NIL 可抑制进度条。 |
返回类型
void
无返回值。
头文件
oma_ot.h
详情
可以用本函数完成以下事情之一:
- 读取 OT 文件时显示自定义进度条(使用你自己编写的
progress_proc函数) - 注册一个 PRGC_NIL 进度过程来抑制进度条
在用本函数设置新的进度过程之前,应始终先用 Oma_Ot_Progress_Proc_Get() 获取并保存当前注册的进度过程,并在读完 OT 表后恢复原来的进度过程。
progress_proc 类型的说明见 OmaT_Ot_Progress_Proc。