📄 symbol.h
字号:
POINT poMouse;
}QULIST;
struct DEVICEHEAD {
DEVICEHEAD* pNext;
WORD wAttrib;
WORD wStrategyOff;
WORD wInterruptOff;
char chDeviceName[8];
};
struct IOPACKET
{
BYTE byLength;
BYTE byDrives;
BYTE byCommand;
WORD wStatus;
char chReserve[8];
BYTE byMediaFlags;
void far* pBuffer;
WORD wSize;
BYTE byCrc;
};
//=========================================================================
//=========================================================================
struct IME_HEAD
{
char bufFlags[4];
WORD wVersion;
WORD wHalfTable;
WORD wLinkTable;
DWORD dwDataTable;
WORD wSize;
WORD wMaxCodes;
char bufUsedCodes[32];
char bufCaption[12];
WORD wWildChar;
WORD wMaxElement;
DWORD dwNumRules;
};
struct IME_HALFTABLE
{
DWORD dwChar;
DWORD dwLoc;
};
class CRect
{
public:
int nLeft;
int nTop;
int nRight;
int nBottom;
public:
CRect(){nLeft=0,nRight=0,nTop=0,nBottom=0;}
CRect(int left,int top,int right,int bottom)
{
nLeft=left,nRight=right,nTop=top,nBottom=bottom;
};
int Width(){return((nRight<nLeft)?0:nRight-nLeft+1);}
int Height(){return((nBottom<nTop)?0:nBottom-nTop+1);}
};
/****************************************************/
#define SHAPE_RECT 0x0000
#define SHAPE_CIRCLE 0x0001
#define SHAPE_ELLIPSE 0x0002
/****************************************************/
#define STANDAND_DATA_COUNT 2048L
#define BETWEEN(a,b,c) ((b>=c&&a<=c)?1:0)
#define DELAY(a) {(bAfxRealTime)?delay(a):delay(a+2000);}
/****************************************************/
#define ALIGN_LEFT 0
#define ALIGN_MIDDLE 1
#define ALIGN_RIGHT 2
/***************************************/
#define BIT_0 0x0
#define BIT_1 0x1
#define BIT_2 0x2
#define BIT_3 0x3
#define BIT_4 0x4
#define BIT_5 0x5
#define BIT_6 0x6
#define BIT_7 0x7
#define BIT_8 0x8
#define BIT_9 0x9
#define BIT_10 0xA
#define BIT_11 0xB
#define BIT_12 0xC
#define BIT_13 0xD
#define BIT_14 0xE
#define BIT_15 0xF
/***************************************/
#define TEST_NULL 0x0
#define TEST_NORMAL 0x0
#define TEST_RETRY 0x1
#define TEST_SKIP 0x2
#define TEST_NO 0x3
#define TEST_CANCEL 0x4
//===========================================
#define VALUE_STYLE_NULL 0x00
#define VALUE_STYLE_TRUE 0x0001
#define VALUE_STYLE_YESNO 0x0FE1
#define VALUE_STYLE_POSI_NEGA 0x0FE2
#define VALUE_STYLE_ARMATURE_BAR 0x0FE3
#define VALUE_STYLE_HIPOT 0x0FE4
#define VALUE_STYLE_INSULATION 0x0FE5
#define VALUE_STYLE_SURGE 0x0FE6
#define VALUE_STYLE_ARMATURE_WELD 0x0FE7
#define VALUE_STYLE_RESISTANCE 0x0FE8
//===========================================
#define DATAMAP_NULL 0
#define DATAMAP_PASS 1
#define DATAMAP_FAIL 2
//===========================================
#define MAX_TEST_ITEM_COUNT 168 //128
//===========================================
/*
//===========================================
#define MAX_TEST_ITEM_COUNT 128
#define MAX2_TEST_ITEM_COUNT 128
//===========================================
struct FIRSTSAIL_DATAMAP
{
char strMotorType[24];
DWORD dwTime;
DWORD dwLine;
DWORD dwMask1;
DWORD dwMask2;
DWORD dwMask3;
DWORD dwMask4;
DWORD dwMask5;
DWORD dwMask6;
DWORD dwMask7;
DWORD dwMask8;
DWORD dwMask9;
DWORD dwMask10;
DWORD dwMask11;
DWORD dwMask12;
DWORD dwMask13;
DWORD dwMask14;
DWORD dwMask15;
DWORD dwMask16;
float sfData[MAX2_TEST_ITEM_COUNT];
};
struct REPORTDATAMAP
{
DWORD dwTime;
char strMotorType[20];
DWORD dwTotalCount;
DWORD dwRightCount;
DWORD dwErrorCount;
float fRate;
DWORD dwData[MAX_TEST_ITEM_COUNT];
};
*/
#define SPC_MOVE_STYLE_NORMAL 0
#define SPC_MOVE_STYLE_SAMPLING 1
typedef struct _tagSTATICGRAPHICPIE
{
WORD wLineCount;
WORD wSort;
WORD wSelect;
float *pfData;
BOOL bDraw;
}STATICGRAPHICPIE;
#define DELETE(a) {if ((a) != NULL) delete (a); (a) = NULL;}
#define ERROR_VALUE 0xFFFF
#define SINGLE_ERROR_VALUE 987.0f
#define MAX_TEST_GROUP 30
#define MAX_TEST_GROUP_STRING_LENGTH 32
#define MAX_MODIFY_ARRAY 80
#define pi 3.1415926
#define MAX(a,b) ((a>b)?a:b)
#define MIN(a,b) ((a<b)?a:b)
//---------------------------------------------------
#define CHANNEL0_TYPE 0x30
#define CHANNEL1_TYPE 0x70
#define CHANNEL2_TYPE 0xB0
#define SAIL_COUNTER0_PCL711B(nBase) (nBase+0x00)
#define SAIL_COUNTER1_PCL711B(nBase) (nBase+0x01)
#define SAIL_COUNTER2_PCL711B(nBase) (nBase+0x02)
#define SAIL_COUNTER_CONTROL_PCL711B(nBase) (nBase+0x03)
#define SAIL_AD_L_PCL711B(nBase) (nBase+0x04)
#define SAIL_AD_H_PCL711B(nBase) (nBase+0x05)
#define SAIL_DI_L_PCL711B(nBase) (nBase+0x06)
#define SAIL_DI_H_PCL711B(nBase) (nBase+0x07)
#define SAIL_CLEAR_IRQ_PCL711B(nBase) (nBase+0x08)
#define SAIL_GAIN_PCL711B(nBase) (nBase+0x09)
#define SAIL_CHANNEL_PCL711B(nBase) (nBase+0x0A)
#define SAIL_MODE_PCL711B(nBase) (nBase+0x0B)
#define SAIL_SOFTWARE_PCL711B(nBase) (nBase+0x0C)
#define SAIL_DO_L_PCL711B(nBase) (nBase+0x0D)
#define SAIL_DO_H_PCL711B(nBase) (nBase+0x0E)
//----------------------------------------------------
#define SAIL_GAIN_5V01_PCL711B 0x01
#define SAIL_GAIN_5V02_PCL711B 0x02
#define SAIL_GAIN_5V04_PCL711B 0x04
#define SAIL_GAIN_5V08_PCL711B 0x08
#define SAIL_GAIN_5V16_PCL711B 0x10
//-----------------------------------------------
#define SAIL_BINRARY(a,b,c,d,e,f,g,h) ((BYTE)(a<<7)+\
(BYTE)(b<<6)+\
(BYTE)(c<<5)+\
(BYTE)(d<<4)+\
(BYTE)(e<<3)+\
(BYTE)(f<<2)+\
(BYTE)(g<<1)+\
(BYTE)(h<<0))
//-----------------------------------------------
#define SAIL_SHIFT8(a) ((a)<<8)
#define SAIL_SHIFT16(a) ((a)<<16)
#define SAIL_LOBYTE(a) ((BYTE)((a)&0xFF))
#define SAIL_HIBYTE(a) ((((DWORD)(a))>>8)&0xFF)
#define SAIL_LOWORD(a) ((WORD)((WORD)(((DWORD)(a))&0xFFFFL)))
#define SAIL_HIWORD(a) ((WORD)((((DWORD)(a))>>16)&0xFFFFL))
#define SHIFT8(a) ((a)<<8)
#define SHIFT16(a) ((a)<<16)
#define LOBYTE(a) ((BYTE)((a)&0xFF))
#define HIBYTE(a) ((((DWORD)(a))>>8)&0xFF)
#define LOWORD(a) ((WORD)((WORD)(((DWORD)(a))&0xFFFFL)))
#define HIWORD(a) ((WORD)((((DWORD)(a))>>16)&0xFFFFL))
//-----------------------------------------------
#define MAX_TEST_TIMES 10
//-----------------------------------------------
#ifndef VESA
#define VESA 11
#define VESA800_600_16 0 //6A
#define VESA640_400_256 1 //100H
#define VESA640_480_256 2 //101H
#define VESA800_600_16_2 3 //102H
#define VESA800_600_256 4 //103H
#define VESA1024_768_16 5 //104H
#define VESA1024_768_256 6 //105H
#define VESA1280_1024_16 7 //106H
#define VESA1280_1024_256 8 //107H
#define VESA320_200_256 9 //107H
#define VESA320_240_256 10 //107H
#define VESA320_240_SED1335 11
#endif
#ifndef SED1335VGA
#define SED1335VGA 13
#define SED1335VGA_320_240_1 0
#define SED1335VGA_640_480_1 1
#define SED1335VGA_800_600_1 2
#define SED1335VGA_1024_768_1 3
#endif
#ifndef TFTVGA
#define TFTVGA 14
#define TFT_320_240_256 0
#define TFT_640_480_256 1
#define TFT_800_600_256 2
#define TFT_1024_768_256 3
#ifndef TVGA
#define TVGA 15
#define TVGA800_600_16 0 //5B//6A
#define TVGA640_400_256 1 //5C//100H
#define TVGA640_480_256 2 //5D//101H
#define TVGA800_600_16_2 3 //xx//102H
#define TVGA800_600_256 4 //5E//103H
#define TVGA1024_768_16 5 //5F//104H
#define TVGA1024_768_256 6 //62//105H
#define TVGA1280_1024_16 7 //xx//106H
#define TVGA1280_1024_256 8 //xx//107H
#define TVGA320_200_256 9 //xx//107H
#define TVGA320_240_256 10 //xx//107H
#define TVGA320_240_SED1335 11
#endif
#endif
#include <Bitmap.h>
#include <Icon.h>
#include <GIf.h>
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -