Files
envi-code/SourceCode/Code2026/EarthWormCmd/StdAfx.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

106 lines
5.8 KiB
C++

#if !defined(__STDAFX_H__)
#define __STDAFX_H__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WINVER 0x0600
#pragma warning(disable: 4786)
//- 'DEBUG workaround' below prevents the MFC or ATL #include-s from pulling
//- in "Afx.h" that would force the debug CRT through #pragma-s.
#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 // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#endif
#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
#include <map>
#include <string>
#include <VECTOR>
//{{AFX_INSERT_LOCATION}}
#include "KTCad.h"
#include "KTGlobalDef.h"
#include <afxdhtml.h>
#include "Kingtouch.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里面!!!!!!!!!!!!!!!!!!!!!!!
*/
extern HINSTANCE _hdllInstance;
#define UIICOMMONDLLEXPORT
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif
class AecDbEarthWorm;
int __declspec(dllimport) GetConnectedWorms(const AcDbObjectId& idHit, AcDbObjectIdArray& arIds);
int __declspec(dllimport) GetConnectedWorms(const AecDbEarthWorm* pEW, AcDbObjectIdArray& arIds);
int __declspec(dllimport) GetConnectedWorms(const AcDbObjectId &idS, const AcDbObjectId &idE, AcDbObjectIdArray& arIds);
int __declspec(dllimport) GetConnectedWorms(const AecDbEarthWorm *pEwS, const AecDbEarthWorm *pEwE, AcDbObjectIdArray &arIds);
void __declspec(dllimport) ContinueVerSection(const AcDbObjectIdArray& arIds, int nSectionStyle);
void __declspec(dllimport) CollectEarthwormForVSection(const AcDbObjectIdArray &arAllIds, AcDbObjectIdArray &arVIds);
int __declspec(dllimport) ContinueConnectedWorms(const AcDbObjectId& idHit, const AcDbObjectIdArray& arIds);
int __declspec(dllimport) acedEWEntSel(LPCTSTR pszPrompt, AcDbObjectIdArray& arIDs);
void __declspec(dllimport) OrthoProjected3DSolid(AcDb3dSolid* pSolidClone,const AcGePlane& plan,AcGeMatrix3d& xformPlanToWorld,AcDbVoidPtrArray& arEntPtrs);
#define FILE_NAME_INI _T("earth_worm_cmd_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__)
#endif // !defined(__STDAFX_H__)