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

#if !defined(AFX_STDAFX_H__66BB2D15_A0FA_43A8_8F77_79B6BA78A107__INCLUDED_)
#define AFX_STDAFX_H__66BB2D15_A0FA_43A8_8F77_79B6BA78A107__INCLUDED_

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

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

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxmt.h>

#include "launet.h"
#include "Smart_Black.h"
extern CSmart_BlackApp theApp;
#define APPDIR	theApp.m_appdir


#define WM_NETCLIENT	(WM_USER + 400)


#define MIN_BLACK_VALUE		0
#define MAX_BLACK_VALUE		3

typedef struct _BLACKLEVEL
{
    int   m_itype;//黑度颜色区分
	float m_fmin; //黑度最小值
	float m_fmax; //黑度最大值
	BOOL  m_bwav; //是否启用声音
	int   m_alarm;//报警记录
	BOOL  m_bselect;//是否选中该关联
}BLACKLEVEL;
typedef struct _BLACKLEVELS
{
	BLACKLEVEL m_data[5];
	int m_ivaild;
}BLACKLEVELS;

typedef struct
{
	int     m_region_flg;		        //黑度分析目标区域标志 是否进行区域判断
	int     m_region_left;		        //黑度分析目标区域的坐标 左上
	int     m_region_top;		        //黑度分析目标区域的坐标 左上
	int     m_region_right;		        //黑度分析目标区域的坐标 右下
	int     m_region_bottom;	        //黑度分析目标区域的坐标 右下
}BLACK_LEVEL_AREA;
typedef struct
{
    BLACK_LEVEL_AREA  m_region[10];   //黑度分析目标区域
}BLACK_LEVEL_AREAS;

typedef struct
{
    BLACK_LEVEL_AREA  m_region;       //黑度分析目标区域
    float             m_value;        //黑度分析值
}BLACK_AREA_VALUE;

typedef struct
{
    BLACK_AREA_VALUE   m_report[10];   //黑度分析上报值
}BLACK_AREA_VALUES;

#pragma comment(lib, "NetClient")
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__66BB2D15_A0FA_43A8_8F77_79B6BA78A107__INCLUDED_)
