113 lines
4.6 KiB
C++
113 lines
4.6 KiB
C++
#pragma once
|
|
#pragma warning(disable: 4786)
|
|
|
|
#if defined(_DEBUG) && !defined(AC_FULL_DEBUG)
|
|
#define _DEBUG_WAS_DEFINED
|
|
#undef _DEBUG
|
|
#pragma message ("Compiling MFC / STL / ATL header files in release mode.")
|
|
#endif
|
|
|
|
#pragma pack (push, 8)
|
|
#pragma warning(disable: 4786 4996)
|
|
|
|
#define VC_EXTRALEAN
|
|
|
|
#include <afxwin.h>
|
|
#include <afxext.h>
|
|
|
|
#ifndef _AFX_NO_OLE_SUPPORT
|
|
#include <afxole.h>
|
|
#include <afxodlgs.h>
|
|
#include <afxdisp.h>
|
|
#endif
|
|
|
|
#include <afxdtctl.h>
|
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcmn.h>
|
|
#endif
|
|
#include <map>
|
|
#include <string>
|
|
#include <VECTOR>
|
|
|
|
#include <afxdhtml.h>
|
|
|
|
#include "ktcad.h"
|
|
#include "Kingtouch.h"
|
|
#include "uiiado.h"
|
|
|
|
/*
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
!!!!!!!注意!!!!!! 不要在这里添加头文件,哪个CPP使用,就把头文件添加到哪个CPP里面!!!!!!!!!!!!!!!!!!!!!!!
|
|
*/
|
|
|
|
#define LAY_HVAC_CEN _T("HVAC_CEN")
|
|
#define LAY_HVAC_OUT _T("HVAC_OUT")
|
|
#define LAY_HVAC_SIG _T("HVAC_SIG")
|
|
#define LAY_HVAC_DSH _T("HVAC_DSH")
|
|
|
|
#define LAY_CFITN_CENTER LAY_HVAC_CEN
|
|
#define LAY_CFITN_OUTSIDE _T("HFITN_OUT")
|
|
#define LAY_CFITN_SINGLE _T("HFITN_SIG")
|
|
#define LAY_CFITN_DASH _T("HFITN_DSH")
|
|
|
|
#define LAY_CEQU_CENTER LAY_HVAC_CEN
|
|
#define LAY_CEQU_DASH _T("HEQU_DSH")
|
|
#define LAY_CEQU _T("HEQU")
|
|
|
|
|
|
// 设备参数信息结构体(与设备的参数表对应)
|
|
typedef struct SFitParam
|
|
{
|
|
CString sCode; // 变量代号(英文表示)
|
|
CString sType; // 变量类型(0:构件参数,1:几何参数)
|
|
CString sControlType; // 显示界面时,变量对应控件类型
|
|
CString sRemark; // 变量备注(赋加信息,Spin的步长值;Combox的取值)
|
|
CString sDesc; // 变量名称
|
|
CString sUnit; // 变量单位
|
|
CString sDefault; // 变量的默认值
|
|
CString sPrompt; // 变量的提示信息
|
|
CString sShowStatus; // 变量的显示状态0:正常显示,可编辑1:显示,但不可编辑2:不显示
|
|
}SFITPARAM;
|
|
|
|
typedef CMap<CString, LPCTSTR, SFitParam, SFitParam&> CMapFitaram;
|
|
|
|
extern HINSTANCE _hdllInstance;
|
|
|
|
#define UIICOMMONDLLEXPORT
|
|
|
|
#ifndef _ttof
|
|
#define _ttof(pszVal) _tcstod((pszVal), NULL)
|
|
#endif
|
|
|
|
#ifdef _DEBUG_WAS_DEFINED
|
|
#define _DEBUG
|
|
#undef _DEBUG_WAS_DEFINED
|
|
#endif
|
|
|
|
#define FILE_NAME_INI _T("hvaccmd_uicache.dat")
|
|
#define GET_CACHE(name,format, ...) UIHistory::readCache(FILE_NAME_INI, _T(#name), _T(#format), ##__VA_ARGS__)
|
|
#define SET_CACHE(name,format, ...) UIHistory::writeCache(FILE_NAME_INI, _T(#name), _T(#format), ##__VA_ARGS__)
|
|
|
|
|