
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
#endif

#include "targetver.h"

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // some CString constructors will be explicit

// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
typedef struct _HT_CONTROL_DATA
{
	WORD nCHSet;
	WORD nTimeDIV;
	WORD nTriggerSource;
	WORD nHTriggerPos;
	WORD nVTriggerPos;
	WORD nTriggerSlope;
	ULONG nBufferLen;//对应于10K，1M，2M.....16M
	ULONG nReadDataLen;//记录本次将要从硬件读取的数据总共长度
	ULONG nAlreadyReadLen;//记录本次已经读取的数据长度，在扫描/滚动模式下有效,在NORMAL模式下无效
	WORD nALT;
	WORD nETSOpen;
	WORD nDriverCode;		//驱动编号		
	ULONG nLastAddress;  //add by zhang to fit DSO6104    记录扫描模式上次读取的终止地址		
}CONTROLDATA, *PCONTROLDATA;
struct SegmentTime
{
	UCHAR nHour;
	UCHAR nMin;
	UCHAR nSecond;
	UCHAR nOffset;
	ULONG nMicrosecond;
};
#define BUF_2_5K_LEN					2560
#define BUF_INSERT_LEN 				73728
#define BUF_10K_LEN					10240
//#define MAX_DATA					255
#define CH1							0
#define CH2							1
#define CH3							2
#define CH4							3
#define MAX_CH_NUM					4
//#define CAL_LEVEL_LEN				72
#define DC							0
#define AC							1
#define GND							2
#define X1							0
#define X10							1
#define X100						2
#define X1000						3
#define EDGE						0
#define RISE						0
#define FALL						1
#define AUTO						0
#define NORMAL						1
#define SINGLE						2

#define MIN_DATA					0				//
#define MAX_DATA					255				//
#define MIN_DISPLAY_DATA			27//(0.1f*MAX_DATA+0.9f*MIN_DATA)				//
#define MAX_DISPLAY_DATA			227//(0.9f*MAX_DATA+0.1f*MIN_DATA)				//
#define DISPLAY_RANGE				200

#include "HeadFiles\\HTHardDll.h"
//导入操作硬件DLL
#pragma comment(lib,"Libs\\HTHardDll.lib")

#include "HeadFiles\\HTDisplayDll.h"
//导入操作硬件DLL
#pragma comment(lib,"Libs\\HTDisplayDll.lib")


#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>           // MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>             // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxcontrolbars.h>     // MFC support for ribbons and control bars











