国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

DOS下的3D按鈕

2019-11-17 05:41:17
字體:
供稿:網(wǎng)友
/*--------本程序由sunny整理完成-----------*/
***  基于DOS平臺(tái),在Turbo c2.0中調(diào)試通過 **
***   原碼見于http://sunny1979.icpcn.com   ***/#include "conio.h"
#include "stdio.h"
#include "graphics.h"
#include "stdlib.h"
#include "dos.h"void Box(int left,int top,int right,int bottom,int color)
{
 int old_color;
 old_color=getcolor();
 setcolor(color);
 line(left,top,right,top);
 line(left,top,left,bottom);
 line(right,top,right,bottom);
 line(left,bottom,right,bottom);
 setcolor(old_color);
}
Dbox(int left,int top,int right,int bottom)
{
 int x;
 setfillstyle(SOLID_FILL,LIGHTGRAY);
 bar(left,top,right,bottom);
 setcolor(BLACK);
 Box(left,top,right,bottom,BLACK);
 setfillstyle(SOLID_FILL,3);
 bar(left+2,top+2,right-2,bottom-2);
 setcolor(BLACK);
 line(left,top+16+49,right,top+16+49);
 setcolor(LIGHTGRAY);
 line(left+3,top+16+50,right-3,top+16+50);
 setfillstyle(SOLID_FILL,BLUE);
 bar(left+2,top+3,right-3,top+16+47);
}Dbox1(int left,int top,int right,int bottom)
{
 int x;
 setfillstyle(SOLID_FILL,LIGHTGRAY);
 bar(left,top,right,bottom);
 setcolor(BLACK);
 Box(left,top,right,bottom,BLACK);
 setfillstyle(SOLID_FILL,7);
 bar(left+2,top+2,right-2,bottom-2);
}
Button(int left,int top,int length,int b,int c1,int c2,int c3,int g)  /*c1=white--black;  c2=black--darkgray;c3=darkgray---white  */
{
 int bottom,right;
 bottom=top+b;
 right=left+length;
 setfillstyle(SOLID_FILL,c1);
 bar(left,top,right,bottom);
 setcolor(BLACK);
 Box(left,top,right,bottom,c2);
 setfillstyle(SOLID_FILL,g);
 bar(left+2,top+2,right-1,bottom-1);
 setcolor(c3);
 setlinestyle(0,0,1);
 line(left+1,bottom-1,right,bottom-1);
 line(right-1,top+1,right-1,bottom);
}
Buttont(int left,int top,int length,int b,int g)
{
int bottom,right;
bottom=top+b;
right=left+length;
setfillstyle(SOLID_FILL,BLACK);
bar(left,top,right,bottom);
setcolor(BLACK);
Box(left,top,right,bottom,DARKGRAY);
setfillstyle(SOLID_FILL,g);
bar(left+3,top+3,right-1,bottom-1);
setcolor(WH99vE);
setlinestyle(0,0,1);
line(left+1,bottom-1,right-1,bottom-1);
line(right-1,top+1,right-1,bottom-1);
}main()
{
 int GD=DETECT,GM;
 initgraph(&GD,&GM,"");
 setbkcolor(1);
 textcolor(1);
 Button(100,100,50,20,15,0,8,7);
getch();
closegraph();        clrscr();
        exit(0);
}

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 西昌市| 静海县| 海晏县| 河南省| 定兴县| 延长县| 凌海市| 团风县| 家居| 凉城县| 商洛市| 达尔| 名山县| 霍林郭勒市| 江永县| 来凤县| 六安市| 青冈县| 苗栗市| 青海省| 柞水县| 游戏| 鄂尔多斯市| 利川市| 年辖:市辖区| 温泉县| 江北区| 闽侯县| 和林格尔县| 胶州市| 兰坪| 茶陵县| 三门峡市| 郧西县| 玉门市| 罗平县| 喀喇| 奎屯市| 探索| 探索| 霸州市|