Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MyCADInfo.h
Package: MiniCAD_ALL.zip [view]
Upload User: netltd
Upload Date: 2013-02-12
Package Size: 7234k
Code Size: 2k
Category:
Graph Drawing
Development Platform:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- #include "MyDefine.h"
- //////////////////////////////////////////////////////////////////////
- //图纸层类
- class CFileLayer: public CObject
- {
- private:
- CString m_name;
- int m_index; //图层序号
- BOOL m_show; //图层显示标记
- BOOL m_locked; //图层锁定标记
- public:
- CFileLayer(CString m_name, int index, BOOL show, BOOL locked);
- void SetShow();
- void SetLocked();
- void SetIndex(int index);
- void Serialize(CArchive& ar);
- };
- //图纸信息类
- class CFileInfo: public CObject
- {
- public:
- CFileInfo();
- DECLARE_SERIAL(CFileInfo)
- CFileInfo(const CFileInfo& Info);
- operator =(const CFileInfo& Info);
- CString Name;
- CString FileName;
- CString FilePath;
- CSize size;
- public:
- virtual ~CFileInfo();
- void Serialize(CArchive& ar);
- };
- ////////////////////////////////////////////////////////////////////////
- //项目信息类
- class CProjectInfo: public CObject
- {
- public:
- CProjectInfo();
- DECLARE_SERIAL(CProjectInfo)
- int CurrentCommand; //当前有关项目的命令
- CString Name;
- CString FileName;
- CString FilePath;
- int FileNum; //项目中的图纸总数
- CFileInfo FileInfo[MAX_FILENUM];
- public:
- // Implementation
- public:
- virtual ~CProjectInfo();
- };
- ////////////////////////////////////////////////////////////////////////////
- // CCADInfo document
- class CCADInfo : public CObject
- {
- // Attributes
- public:
- CCADInfo();
- BOOL IsEmpty; //如果有新建或打开的项目、图纸或元件为FALSE,否则为TRUE
- UINT KindofNew; //项目、图纸或模板标志
- CString ProjectPath; //缺省项目路径
- CString FilePath; //缺省图纸文件路径
- int OpenedFileNum;
- int ActiveFileIndex;
- COLORREF PenColor; //缺省画笔颜色
- int LineStyle; //缺省线型
- COLORREF BackColor; //缺省背景色
- CFileInfo FileInfo;
- // Operations
- public:
- virtual ~CCADInfo();
- };