⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _sdm.h

📁 dos 1.0 其中包含quick basic源代码、内存管理himem emm386 发展历史
💻 H
字号:
/*
	_sdm.h : Really local SDM info
*/


/* State Of SDM Engine */

typedef struct _sds
	{
	WORD	ctif;			/* count of TIFs */
	PTIF	rgtif;			/* pointer to array of TIF's */
	PWND	pwndDialog;		/* window of dialog */
	HCAB	hcab;			/* original CAB */
	PDLG	pdlg;			/* start of template */
	BYTE *	pbWorkBuffer;
	} SDS;	/* SDM state */

/* macros to mask access to global state */
#define FExistsDialogProc()	(sdsCur.pdlg->pfnDlg != NULL)
#define	FCallDialogProc(dlm, tmc, wNew, wOld, wParam)	\
	(*sdsCur.pdlg->pfnDlg)(dlm, tmc, wNew, wOld, wParam)

extern SDS PASCAL sdsCur;

/* SDM template initialization */

typedef struct _tci
	{
	WORD	cbWnd;		/* # of bytes for the window */
	WORD	cbAdditional;	/* # additional bytes or cbRect */
	WORD	style;		/* normal style */
	} TCI;	/* iTem Creation Info */


/* make a TCI item with extra info */
#define TciMake(cwExtra, cwAdditional, style)	\
	{ (cwWnd + (cwExtra)) * sizeof(WORD), (cwAdditional) * sizeof(WORD),\
	  (style) }

/* the special "rect" value means calculate additional size from rectangle */
#define	cwRect	((WORD) -1)
#define	cbRect	((WORD) -2)


#define	tmtDialog	tmtNull
#define	tmtScroll	(tmtNormalMax+0)

/* Special masking to get stuff from normal TM */

#define	PcrcOfTm(ptm)		((CRC *) &(ptm)->l)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -