没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
#include <conio.h>
#include<dos.h>
#include <graphics.h>
#include<stdio.h>
#include<stdlib.h>
/*定义一些常数*/
#define NO 0
#define YES 1
#define NONE -1
#define MAX_MENU 7/*根据情况改变可以在菜单显示的最大项*/
/*全局参数*/
int X,Y;
int Selection;
int button,x,y;
void *p;
size_t area;
/*菜单结构*/
struct MENU
{
/*左上角*/
int x;
int y;
/*右下角*/
int x1;
int y1;
unsigned char Active[MAX_MENU];/* 菜单项是否激活的标志*/
char *head;/* 菜单的名字(可选项)*/
#include<dos.h>
#include <graphics.h>
#include<stdio.h>
#include<stdlib.h>
/*定义一些常数*/
#define NO 0
#define YES 1
#define NONE -1
#define MAX_MENU 7/*根据情况改变可以在菜单显示的最大项*/
/*全局参数*/
int X,Y;
int Selection;
int button,x,y;
void *p;
size_t area;
/*菜单结构*/
struct MENU
{
/*左上角*/
int x;
int y;
/*右下角*/
int x1;
int y1;
unsigned char Active[MAX_MENU];/* 菜单项是否激活的标志*/
char *head;/* 菜单的名字(可选项)*/
};
int MouseOn(struct MENU *t);
void Process();
void Xorbar(int sx,int sy,int ex,int ey,int c);
void Show();
void Hide();
void Status();
/* 通过下面的参数用户可以改变按钮的位置。*/
struct MENU File={200,110,250,130};
struct MENU Edit={295,110,345,130};
struct MENU Help={390,110,440,130};
struct MENU Close={600,10,620,30};
struct MENU Neeraj={380,300,460,315};
void main()
{
int gd = DETECT,gm;
/*初始化图形界面*/
initgraph(&gd, &gm,"");
Selection=NONE;
/*是否激活菜单项,YES表示激活;NO表示取消激活*/
for(gd=0;gd<MAX_MENU;gd++)
{
File.Active[gd]=YES;
Edit.Active[gd]=YES;
Help.Active[gd]=YES;
int MouseOn(struct MENU *t);
void Process();
void Xorbar(int sx,int sy,int ex,int ey,int c);
void Show();
void Hide();
void Status();
/* 通过下面的参数用户可以改变按钮的位置。*/
struct MENU File={200,110,250,130};
struct MENU Edit={295,110,345,130};
struct MENU Help={390,110,440,130};
struct MENU Close={600,10,620,30};
struct MENU Neeraj={380,300,460,315};
void main()
{
int gd = DETECT,gm;
/*初始化图形界面*/
initgraph(&gd, &gm,"");
Selection=NONE;
/*是否激活菜单项,YES表示激活;NO表示取消激活*/
for(gd=0;gd<MAX_MENU;gd++)
{
File.Active[gd]=YES;
Edit.Active[gd]=YES;
Help.Active[gd]=YES;
剩余16页未读,继续阅读
资源评论
- faith198710232011-10-23再写一个简易数据库的程序要用到菜单,没什么思路,参考一下,谢谢!!!
asd5212199
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功