亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? get_no.c

?? BC3.1編譯,小交換機計費系統.使用Dos做出如此好的界面,少有.
?? C
字號:
/* ------------------------------------------------------------
	FILENAME:	GET_NO.C
	DATE:		1993.4.18
	AUTHOR:		Bob Kong
	FUNCTION:	Offer a function: get_no(), which gets the office's no
				or the DDD's area code or the IDD's country code.
   ------------------------------------------------------------ */
#include	<mem.h>
#include	<graphics.h>
#include	<stdio.h>
#include	<alloc.h>

#include	<KEY.INC>
#include	<DEF.INC>
#include	<FUNC.INC>

extern UC 	Get_mode_settled;
extern UC   Get_bk_color;
extern UC   Get_char_color;
extern UC   Get_cursor_color;
extern UC	Get_ret_bk_color;
extern UC	Get_ret_char_color;

#define		CHAR_COLOR      0	/* specify the characters' color which echoed */
#define		BK_COLOR	11	/* specify the background color */
#define		CURSOR_COLOR 	12	/* specify the cursor color */
#define		RET_BK_COLOR	11	/* specify the return back color */
#define		RET_CHAR_COLOR  0   /* specify the return char color */

/*---------------------------------------------------*/
#define RESTORE_SAVE	setcolor(old_color);\
						setfillstyle(old_fill.pattern, old_fill.color);\
						setlinestyle(old_line.linestyle, old_line.upattern, old_line.thickness)

#define DISP_STR		bar(char_sx, char_sy, char_ex, char_ey);\
						hz16_disp(char_sx, char_sy, input_str, Get_char_color)

/* ------------------------------------------------------------
	FUNCTION:	Read the office No or toll No from screen.
	INPUT:		(x,y)	The coordination of the input window.
				high    The heigth of the input window.
				width	Width of the input window.
				back_in	The space between the pos_sx and char_sx.
				max_len	Maxium characters that can be input from screen.
				get_buf	Input buffer for the string.
				mode	0x0 -- Input the office No without first digit.
						0x1 -- Input the DDD No without first digit.
						0x2 -- Input the IDD No without first digit.
						0x#3 -- Input the office No with first digit.
						0x#4 -- Input the DDD No with first digit.
						0x#5 -- Input the IDD No with first digit.
								 # stands for the first digit
	OUTPUT:		0xFF -- <ESC> or <CR> without change.
			input length -- <CR>, and the string returned with no
			appendix '0'.
   ------------------------------------------------------------ */
UC	get_no(UI pos_sx, UI pos_sy, UI high,  UI width, UI back_in,
			UC max_len, UC get_buf[], UC mode)
{
UC 		input_mode;		/* input_mode = mode&0x0F */
UC 		input_str[81];	/* keep the input keys */
UC 		input_num;		/* number of keys in input_str */
UI 		pos_ex, pos_ey;	/* pos_sx, pos_sy, pos_ex, pos_ey
						   indicates the input window */
UI 		char_sx, char_sy, char_ex, char_ey;
						/* indicates the characters' echoing range. */
UI		key;			/* keyboard scan_code */

UC  	*keep_scr_buf;
UI  	scr_size;
UC		old_color;         		    /* used for saving the old color setting */
struct 	fillsettingstype old_fill;  /* for saving old fill style setting */
struct 	linesettingstype old_line;	/* for ssaving old line style setting */

	if (high<15)
	{
		sound_alarm();
		return 0x0;
	}

	input_mode = mode&0x0F;
	switch (input_mode)
	{
	case 0:
		break;
	case 1:
		input_str[0] = '0';
		break;
	case 2:
		input_str[0] = '0';
		input_str[1] = '0';
		break;
	case 3:
		input_str[0] = (mode>>4)+'0';
		break;
	case 4:
		input_str[0] = '0';
		input_str[1] = (mode>>4)+'0';
		break;
	case 5:
		input_str[0] = '0';
		input_str[1] = '0';
		input_str[2] = (mode>>4)+'0';
		break;
	default:
		sound_alarm();
		return(0);
	}
	if ( input_mode>2 )
		input_num = 1; 			/* with the first digit */
	else
		input_num = 0;			/* without the first digit */
	input_mode %= 3;			/* mode 3-->0, mode 4-->1, mode 5-->2 */
	memset(input_str+input_mode+input_num, 0, max_len+1);
								/* reset the rest part of input buff */
	if (input_mode>5)
	{
		sound_alarm();
		return 0;
	}

	if ( width < ((max_len+input_mode+1)<<3)+back_in )
		width = ((max_len+input_mode+1)<<3)+back_in;

	pos_ex = pos_sx+width-1;
	pos_ey = pos_sy+high-1;
	char_sx = pos_sx+back_in;
	char_sy = pos_sy + ((high-15)>>1);
	char_ex = char_sx + ((max_len+input_mode+1)<<3) - 1;
	char_ey = char_sy + 14;

	if (!Get_mode_settled)
	{
		Get_bk_color = BK_COLOR;
		Get_char_color = CHAR_COLOR;
		Get_cursor_color = CURSOR_COLOR;
		Get_ret_bk_color = RET_BK_COLOR;
		Get_ret_char_color = RET_CHAR_COLOR;
	}
	Get_mode_settled = 0;

	scr_size = imagesize(pos_sx, pos_sy, pos_ex, pos_ey);
	keep_scr_buf = (UC *)mem_alloc(scr_size);
	getimage(pos_sx, pos_sy, pos_ex, pos_ey, keep_scr_buf);

	old_color = getcolor();
	getfillsettings(&old_fill);
	getlinesettings(&old_line);

	setfillstyle(1, Get_bk_color);
	setlinestyle(SOLID_LINE, 0, NORM_WIDTH);

	bar(pos_sx, pos_sy, pos_ex, pos_ey);

	DISP_STR;

	while (1)
	{
		clr_keybuf();
		while ( keybuf_nul() )
			disp_cursor(char_sx+((input_num+input_mode)<<3), char_sy+13, Get_bk_color, Get_cursor_color);
		key = get_key0();

		switch (key)
		{
		case ESC:
			putimage(pos_sx, pos_sy, keep_scr_buf, COPY_PUT);
			farfree(keep_scr_buf);
			RESTORE_SAVE;
			return 0;

		case ENTER:
			if( input_num==0 )
			{
				putimage(pos_sx, pos_sy, keep_scr_buf, COPY_PUT);
				farfree(keep_scr_buf);
				RESTORE_SAVE;
				return 0;
			}

			setfillstyle(SOLID_FILL, Get_ret_bk_color);
			bar(pos_sx, pos_sy, pos_ex, pos_ey);
			hz16_disp(char_sx, char_sy, input_str, Get_ret_char_color);

			memcpy(get_buf, input_str+input_mode, input_num);
				/* No appendix '0' */

			farfree(keep_scr_buf);
			RESTORE_SAVE;
			return input_num;

		case BACKSPACE:
			if (input_num==0)
			{
				sound_bell();
				break;
			}
			input_str[input_mode+ (--input_num)] = 0;
			DISP_STR;
			break;

		default:
			if (input_num>=max_len)
			{
				sound_bell();
				break;
			}
			if ( (key &= 0xFF)==0 )
			{
				sound_bell();
				break;
			}
			if (key<'0'||key>'9')
			{
				sound_bell();
				break;
			}
//			if (input_num==0 && key=='0' )   /* the first letter */
//				break;                  /* can't be 0       */
			input_str[input_num+input_mode] = key;
			input_num++;
			DISP_STR;
		}		/* end of switch(key) */
	}   	/* end of while(1) */
}		/* end of get_no()  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频在线观看网站| 91成人免费在线| 亚洲国产精品欧美一二99| 中文字幕人成不卡一区| 国产精品情趣视频| 亚洲色图一区二区三区| 亚洲免费看黄网站| 亚洲制服丝袜av| 丝袜亚洲精品中文字幕一区| 午夜久久福利影院| 六月丁香综合在线视频| 国产一区三区三区| av欧美精品.com| 欧美性感一类影片在线播放| 欧美日韩精品欧美日韩精品一| 欧美日本高清视频在线观看| 日韩免费视频线观看| 国产夜色精品一区二区av| 国产日韩在线不卡| 亚洲一区自拍偷拍| 日本三级韩国三级欧美三级| 蜜臀精品一区二区三区在线观看| 精品制服美女丁香| 99久久99久久精品免费看蜜桃| 色成人在线视频| 欧美电影免费观看高清完整版| 久久精品夜色噜噜亚洲a∨| 国产精品久久久久影视| 亚洲欧美偷拍卡通变态| 丝袜亚洲另类欧美综合| 精品亚洲aⅴ乱码一区二区三区| 久久精品免费观看| jiyouzz国产精品久久| 在线一区二区视频| 精品999久久久| 亚洲精品中文字幕乱码三区| 日韩电影在线一区| 不卡高清视频专区| 日韩一级片网址| 成人欧美一区二区三区1314| 日日夜夜免费精品| 成人污污视频在线观看| 91精品国产色综合久久不卡蜜臀 | 亚洲激情欧美激情| 免费黄网站欧美| 色偷偷久久一区二区三区| 日韩欧美国产三级| 亚洲v精品v日韩v欧美v专区| 国产精品资源在线| 欧美一级一级性生活免费录像| 国产精品国模大尺度视频| 日韩av一区二区在线影视| av高清不卡在线| 久久麻豆一区二区| 另类小说视频一区二区| 色视频一区二区| 国产精品日韩精品欧美在线| 久久er99精品| 日韩一区二区三区高清免费看看| 亚洲男帅同性gay1069| 夫妻av一区二区| 久久综合九色综合97婷婷| 日韩不卡一二三区| 884aa四虎影成人精品一区| 一区二区三区四区亚洲| 色婷婷综合久久久久中文一区二区 | 波多野结衣中文字幕一区二区三区 | 亚洲高清免费观看高清完整版在线观看| 久久丁香综合五月国产三级网站| 欧洲国产伦久久久久久久| 久久久久久免费毛片精品| 日韩电影在线免费观看| 色伊人久久综合中文字幕| 日韩欧美色综合| 亚洲成av人片在线观看无码| 北岛玲一区二区三区四区| 2024国产精品| 精品一区二区精品| 在线综合视频播放| 美国十次了思思久久精品导航| 欧美精品v日韩精品v韩国精品v| 亚洲美女视频在线| 99精品久久只有精品| 中文字幕在线不卡| 成人久久视频在线观看| 欧美老人xxxx18| 麻豆精品在线播放| 日韩欧美国产成人一区二区| 蜜臀久久99精品久久久画质超高清 | 欧美日韩综合在线免费观看| 成人免费小视频| 99久久精品费精品国产一区二区| 久久久久久久久久久电影| 国模大尺度一区二区三区| 精品国产一二三区| 亚洲自拍与偷拍| 日韩一区二区三区观看| 韩国视频一区二区| 国产午夜精品一区二区| 91黄色免费版| 午夜欧美一区二区三区在线播放| 欧美精品一二三四| 久久精品国产免费| 久久精品欧美日韩精品| 成人少妇影院yyyy| 樱花草国产18久久久久| 欧美影片第一页| 一区二区三区四区国产精品| 日韩久久精品一区| 国产精品白丝av| 中文字幕欧美一区| 欧美日韩亚洲综合在线| 奇米色777欧美一区二区| 26uuu国产电影一区二区| 国内外精品视频| 亚洲图片自拍偷拍| 欧美变态口味重另类| 懂色av噜噜一区二区三区av| 中文字幕一区二区三| 欧美影院午夜播放| 国产在线精品一区二区三区不卡 | 色久综合一二码| 亚洲卡通欧美制服中文| 91精品国产综合久久精品性色| 美国三级日本三级久久99 | 午夜成人免费视频| 欧美精品久久一区| www.成人在线| 全部av―极品视觉盛宴亚洲| 中文字幕av在线一区二区三区| 成人免费高清视频| 亚洲一级二级在线| 欧洲视频一区二区| 99re成人精品视频| 久热成人在线视频| 亚洲一区二区三区影院| 欧美大片在线观看| 欧美一卡二卡三卡| 日本韩国欧美三级| 成人黄色国产精品网站大全在线免费观看| 亚洲综合一区二区三区| 中文字幕欧美区| 91精品国产入口| 51午夜精品国产| 日本高清不卡视频| 成年人网站91| 国产一区二区女| 久久精品二区亚洲w码| 中文字幕色av一区二区三区| 精品成a人在线观看| 在线综合+亚洲+欧美中文字幕| 色偷偷久久人人79超碰人人澡| 国产一区二区三区国产| 蜜臀99久久精品久久久久久软件| 亚洲欧洲国产日本综合| 亚洲欧美一区二区在线观看| 国产午夜精品美女毛片视频| 日韩一区二区精品葵司在线| 欧美三区免费完整视频在线观看| 欧洲一区在线观看| 色哟哟一区二区三区| 欧美日韩在线电影| 欧美日韩一区精品| 欧美日韩一二三区| 日本精品免费观看高清观看| 欧美午夜一区二区三区免费大片| 99re亚洲国产精品| 91网站视频在线观看| 成人黄色小视频| 91免费看视频| 91麻豆精品国产91| 日韩欧美一区二区免费| 日韩免费电影网站| 国产亚洲一区二区三区四区| 精品国产凹凸成av人导航| 日韩一区二区三区视频在线| 欧美xxxx在线观看| 26uuu精品一区二区| 日韩精品一区二区三区swag| 精品免费一区二区三区| 精品国内二区三区| 国产欧美日韩三级| 中文字幕在线观看一区| 国产精品久久久久永久免费观看| 亚洲成人午夜电影| 久久精品国产色蜜蜜麻豆| 国产精品综合二区| 91麻豆国产在线观看| 色婷婷久久99综合精品jk白丝| 91精品久久久久久久91蜜桃 | 欧美日韩精品欧美日韩精品一| 日韩色视频在线观看| 久久久久免费观看| 亚洲色图制服丝袜| 蜜桃av一区二区三区电影| 成人午夜av电影| 精品欧美一区二区三区精品久久| 日本一区二区三区在线不卡| 亚洲欧美成aⅴ人在线观看| 日韩电影在线一区二区三区|