?? echo_pri.c
字號:
/* -----------------------------------------------------------------------
FILENAME: ECHO_PRI.C
FUNCTION: Offer the function echo_privi(), which can echo the current
priviledge.
AUTHOR: Bob Kong.
DATE: 1993-08-08
----------------------------------------------------------------------- */
#include <graphics.h>
#include <def.inc>
#include <func.inc>
#include "menu_def.inc"
extern UC Privi;
void echo_privi(void)
{
UI x1 = T_EX+6;
UI x2 = MAX_X-5;
UI y1 = 5;
UI y2 = S_BY-6;
switch (Privi)
{
case 0:
setfillstyle(SOLID_FILL, 2);
bar(x1, y1, x2, y2);
hz16_disp( x1+(x2-x1-4*16)/2, 8, "操作有權", 3);
break;
case 1:
setfillstyle(SOLID_FILL, 1);
bar(x1, y1, x2, y2);
hz16_disp( x1+(x2-x1-4*16)/2, 8, "設定有權", 14);
break;
case 2:
setfillstyle(SOLID_FILL, 4);
bar(x1, y1, x2, y2);
hz16_disp( x1+(x2-x1-4*16)/2, 8, "管理有權", 14);
break;
default:
;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -