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

📄 sim.h

📁 This R2.9 revision of the CLID detector provides the TYPE 1 (on-hook, between first and second ring,
💻 H
字号:
/*---------------------------------------------------------------------*
 *                                                                     *
 * THIS IS AN UNPUBLISHED WORK CONTAINING CONFIDENTIAL AND PROPRIETARY *
 * INFORMATION.  IF PUBLICATION OCCURS, THE FOLLOWING NOTICE APPLIES:  *
 *     "COPYRIGHT 2001 MICHAEL TSIROULNIKOV, ALL RIGHTS RESERVED"      *
 *                                                                     *
 *---------------------------------------------------------------------*/

#if !defined(AFX_SIM_H__DC14A8A7_F923_11D4_9C25_A3CFC0E8AC70__INCLUDED_)
#define AFX_SIM_H__DC14A8A7_F923_11D4_9C25_A3CFC0E8AC70__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"

#define SIM_PENS		(4*4*4)
#define SIM_COLORS		SIM_PENS

// red = 0x3
// green = 0xc
// blue = 0x30

// 16 basic colors

#define BLACK		0x00
#define DARKGRAY	0x15
#define LIGHTGRAY	0x2a
#define WHITE		0x3f

#define RED			0x02
#define LIGHTRED	0x03

#define GREEN		0x08
#define LIGHTGREEN	0x0c

#define BLUE		0x20
#define LIGHTBLUE	0x30

#define BROWN		0x0a
#define YELLOW		0x0f

#define CYAN		0x28
#define LIGHTCYAN	0x3c

#define MAGENTA		0x11
#define LIGHTMAGENTA 0x33

void text_out   (int x, int y, int ColorIdx, char *pTxt);
void val_out    (int x, int y, int ColorIdx, char *pFmt, ...);
void set_color  (int idx);
void cline      (int x, int y, int xTo, int yTo, int PenIdx);
void line       (int x, int y, int xTo, int yTo);
void bar        (int xl, int yt, int xr, int yb);
void pixel      (int x, int y, int color);

#endif // !defined(AFX_SIM_H__DC14A8A7_F923_11D4_9C25_A3CFC0E8AC70__INCLUDED_)

⌨️ 快捷键说明

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