?? file3.c
字號:
#include<graphics.h>
#include<stdio.h>
#include<stdlib.h>
#include<bios.h>
#include<conio.h>
#define UP 0x4800
#define DOWN 0x5000
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define ENTER 0x1c0d
#define ESC 0x011b
#define TRUE 1
#define FALSE 0
#define MenuNum 3
typedef struct{
int menuID;
char MenuName[8];
int itemCount;
char itemName[4][8];
}menu; /*菜單的數據結構*/
extern void *saveImage; /*保存菜單覆蓋區域*/
extern int mHeight;
extern int mWidth; /*定義表示窗口高,寬的變量*/
extern int mutex;
extern menu MainMenu[];
void process(int OldID,int NewID)
{
int L;
int T;
L=mWidth*OldID;
T=0;
settextstyle(1,HORIZ_DIR,1);
setcolor(BLACK);
outtextxy(L+12,T,MainMenu[OldID].MenuName);
L=mWidth*NewID;
setcolor(RED);
outtextxy(L+12,T,MainMenu[NewID].MenuName);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -