Dos6.0

源代码在线查看: strings.c

软件大小: 19350 K
上传用户: 189
关键词: Dos 6.0
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
					COW : Character Oriented Windows
				
					strings.c : common string pool (multiused strings)
				
					(compiles with minimal headers)
					NOTE : the types of data in this file must track strings.h
				*/
				
				#ifndef COW
				/* International build */
				/* define language in compile flags
				#else	/* normal build */
				#include 
				#endif
				
				#include 
				
				char	szEmptyString[]		=	"";
				char	szOkString[]		=	szOk;
				char	szCancelString[]	=	szCancel;
				char 	szYesString[]		=	szYes;
				char	szNoString[]		=	szNo;
				char	szRetryString[]		=	szRetry;
				char	szAbortString[]		=	szAbort;
				#ifdef HELP_BUTTON
				char	szHelpString[]		=	szHelp;
				#endif
				
				/* Array of bytes containing info (see MBB structure for details) */
				/* 3 bytes per option */
				char pascal rgmbb[] =
					{
					0,				0,		0,
					sizeof(szOkString)-1,		cchOk+2,	'\0',
					sizeof(szCancelString)-1,	cchCancel+2,	'\0',
					sizeof(szNoString)-1,		cchNo+2,	chAccelNo,
					sizeof(szYesString)-1,		cchYes+2,	chAccelYes,
					sizeof(szRetryString)-1,	cchRetry+2,	chAccelRetry,
					sizeof(szAbortString)-1,	cchAbort+2,	chAccelAbort
				#ifdef HELP_BUTTON
					, sizeof(szHelpString)-1,	  cchHelp+2,	  chAccelHelp
				#endif
					};
				
				char pascal mpmbcchButton[] =
					{
				#ifdef HELP_BUTTON
				#ifdef BUTTON_CENTER
					(cchOk+2) + 3 + (cchHelp+2),
					(cchYes+2) + 3 + (cchNo+2) + 3 + (cchCancel+2) + 3 + (cchHelp+2),
					(cchRetry+2) + 3 + (cchCancel+2) + 3 + (cchHelp+2),
					(cchOk+2) + 3 + (cchCancel+2) + 3 + (cchHelp+2),
					(cchAbort+2) + 3 + (cchHelp+2),
					(cchYes+2) + 3 + (cchNo+2) + 3 + (cchHelp+2),
					(cchRetry+2) + 3 + (cchHelp+2)
				#else
					(cchOk+2) + 2 + (cchHelp+2) + 2,
					(cchYes+2) + 2 + (cchNo+2) + 2 + (cchCancel+2) + 2 + (cchHelp+2) + 2,
					(cchRetry+2) + 2 + (cchCancel+2) + 2 + (cchHelp+2) + 2,
					(cchOk+2) + 2 + (cchCancel+2) + 2 + (cchHelp+2) + 2,
					(cchAbort+2) + 2 + (cchHelp+2) + 2,
					(cchYes+2) + 2 + (cchNo+2) + 2 + (cchHelp+2) + 2,
					(cchRetry+2) + 2 + (cchHelp+2) + 2
				#endif /*BUTTON_CENTER*/
				#else /*HELP_BUTTON*/
				#ifdef BUTTON_CENTER
					(cchOk+2),
					(cchYes+2) + 3 + (cchNo+2) + 3 + (cchCancel+2),
					(cchRetry+2) + 3 + (cchCancel+2),
					(cchOk+2) + 3 + (cchCancel+2),
					(cchAbort+2),
					(cchYes+2) + 3 + (cchNo+2),
					(cchRetry+2)
				#else
					(cchOk+2) + 2,
					(cchYes+2) + 2 + (cchNo+2) + 2 + (cchCancel+2) + 2,
					(cchRetry+2) + 2 + (cchCancel+2) + 2,
					(cchOk+2) + 2 + (cchCancel+2) + 2,
					(cchAbort+2) + 2,
					(cchYes+2) + 2 + (cchNo+2) + 2,
					(cchRetry+2) + 2
				#endif /*BUTTON_CENTER*/
				#endif /*HELP_BUTTON*/
					};
							

相关资源