uTools-Manuals/docs/c/SetScrollBar.html
2019-04-08 23:22:26 +08:00

37 lines
689 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>标准库函数 - SetScrollBar</h1>
<p>原型extern void SetDispBar(int sum, int cur);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:显示滚动条</p>
<p>说明:调用后在屏幕左侧图标区显示百分比滚动条。</p>
sum为总长度cur为当前位置。
举例:<pre>
// SetScrollBar.c
#include &lt;system.h>
main()
{
int i;
clrscr();
printf("Scroll Bar Test");
for(i=0;i<60;i+=5)
{
SetScrollBar(60,i);
sleep(1);
}
getchar();
return 0;
}
</pre>相关函数:无